Update back.ts

This commit is contained in:
Acid Chicken (硫酸鶏) 2018-08-05 18:49:54 +09:00 committed by GitHub
parent f79a905a1d
commit bb42422313
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: {