From bb42422313b019d29c1a40ac9e382acbc290d3f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Sun, 5 Aug 2018 18:49:54 +0900 Subject: [PATCH] Update back.ts --- src/back.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/back.ts b/src/back.ts index c134e01..e26f733 100644 --- a/src/back.ts +++ b/src/back.ts @@ -51,8 +51,8 @@ process.on('message', async msg => { const strength = form.find(i => i.id == 'strength').value; const isSettai = strength === 0; const text = isSettai - ? `?[${getUserName(user)}](${config.host}/@${user.username})さんの接待を始めました!` - : `対局を?[${getUserName(user)}](${config.host}/@${user.username})さんと始めました! (強さ${strength})`; + ? `?[${getUserName(user)}](${config.host}/@${user.username})${titles.some(x => user.username.endsWith(x)) ? '' : 'さん'}の接待を始めました!` + : `対局を?[${getUserName(user)}](${config.host}/@${user.username})${titles.some(x => user.username.endsWith(x)) ? '' : 'さん'}と始めました! (強さ${strength})`; const res = await request.post(`${config.host}/api/notes/create`, { json: {