mirror of
https://github.com/syuilo/ai.git
synced 2024-11-22 13:17:59 +00:00
Update back.ts
This commit is contained in:
parent
f79a905a1d
commit
bb42422313
|
@ -51,8 +51,8 @@ process.on('message', async msg => {
|
||||||
const strength = form.find(i => i.id == 'strength').value;
|
const strength = form.find(i => i.id == 'strength').value;
|
||||||
const isSettai = strength === 0;
|
const isSettai = strength === 0;
|
||||||
const text = isSettai
|
const text = isSettai
|
||||||
? `?[${getUserName(user)}](${config.host}/@${user.username})さんの接待を始めました!`
|
? `?[${getUserName(user)}](${config.host}/@${user.username})${titles.some(x => user.username.endsWith(x)) ? '' : 'さん'}の接待を始めました!`
|
||||||
: `対局を?[${getUserName(user)}](${config.host}/@${user.username})さんと始めました! (強さ${strength})`;
|
: `対局を?[${getUserName(user)}](${config.host}/@${user.username})${titles.some(x => user.username.endsWith(x)) ? '' : 'さん'}と始めました! (強さ${strength})`;
|
||||||
|
|
||||||
const res = await request.post(`${config.host}/api/notes/create`, {
|
const res = await request.post(`${config.host}/api/notes/create`, {
|
||||||
json: {
|
json: {
|
||||||
|
|
Loading…
Reference in a new issue