mirror of
https://github.com/syuilo/ai.git
synced 2024-12-22 08:21:08 +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 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: {
|
||||
|
|
Loading…
Reference in a new issue