From 747099821f9a200c8ffceb74728f0457686fc694 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 17 Mar 2018 00:04:33 +0900 Subject: [PATCH] Repost instead of reply --- src/common/othello/ai/back.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/othello/ai/back.ts b/src/common/othello/ai/back.ts index b6813bcb8..b87ab9985 100644 --- a/src/common/othello/ai/back.ts +++ b/src/common/othello/ai/back.ts @@ -77,14 +77,14 @@ process.on('message', async msg => { ? `?[${user.name}](${conf.url}/${user.username})さんに接待で勝ってしまいました...` : `?[${user.name}](${conf.url}/${user.username})さんに接待で負けてあげました♪` : msg.body.winner_id === null - ? `?[${user.name}](${conf.url}/${user.username})さんと引き分けました~ (強さ${form[0].value})` + ? `?[${user.name}](${conf.url}/${user.username})さんと引き分けました~` : msg.body.winner_id == id - ? `?[${user.name}](${conf.url}/${user.username})さんに勝ちました♪ (強さ${form[0].value})` - : `?[${user.name}](${conf.url}/${user.username})さんに負けました... (強さ${form[0].value})`; + ? `?[${user.name}](${conf.url}/${user.username})さんに勝ちました♪` + : `?[${user.name}](${conf.url}/${user.username})さんに負けました...`; await request.post(`${conf.api_url}/posts/create`, { json: { i, - reply_id: post.id, + repost_id: post.id, text: text } });