mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 01:13:48 +01:00
Repost instead of reply
This commit is contained in:
parent
dbcc12a6fe
commit
629bda733d
@ -77,14 +77,14 @@ process.on('message', async msg => {
|
|||||||
? `?[${user.name}](${conf.url}/${user.username})さんに接待で勝ってしまいました...`
|
? `?[${user.name}](${conf.url}/${user.username})さんに接待で勝ってしまいました...`
|
||||||
: `?[${user.name}](${conf.url}/${user.username})さんに接待で負けてあげました♪`
|
: `?[${user.name}](${conf.url}/${user.username})さんに接待で負けてあげました♪`
|
||||||
: msg.body.winner_id === null
|
: 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
|
: msg.body.winner_id == id
|
||||||
? `?[${user.name}](${conf.url}/${user.username})さんに勝ちました♪ (強さ${form[0].value})`
|
? `?[${user.name}](${conf.url}/${user.username})さんに勝ちました♪`
|
||||||
: `?[${user.name}](${conf.url}/${user.username})さんに負けました... (強さ${form[0].value})`;
|
: `?[${user.name}](${conf.url}/${user.username})さんに負けました...`;
|
||||||
|
|
||||||
await request.post(`${conf.api_url}/posts/create`, {
|
await request.post(`${conf.api_url}/posts/create`, {
|
||||||
json: { i,
|
json: { i,
|
||||||
reply_id: post.id,
|
repost_id: post.id,
|
||||||
text: text
|
text: text
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user