fix: Reverse return value

This commit is contained in:
Siwoo Jeon 2024-07-28 19:32:17 +09:00
parent 2598475a81
commit 31e8ad7a7f
Signed by: migan
GPG key ID: C4151385FFD2082A
2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "muffinbot", "name": "muffinbot",
"version": "3.0.0-cake.d240728a", "version": "3.0.0-cake.d240728b",
"main": "dist/index.js", "main": "dist/index.js",
"private": true, "private": true,
"dependencies": { "dependencies": {

View file

@ -32,8 +32,8 @@ export class WordRelay {
}, },
}).then(res => res.body.json()) }).then(res => res.body.json())
if (res.channel.total === 0) return true if (res.channel.total === 0) return false
else return false else return true
} }
public startGame(msg: Message<true>) { public startGame(msg: Message<true>) {
@ -80,7 +80,7 @@ export class WordRelay {
collector.stop(`${MAAWR_COLLECTED}: ${message.content}`) collector.stop(`${MAAWR_COLLECTED}: ${message.content}`)
} }
}) })
.on('end', (collected, reason) => { .on('end', (_, reason) => {
if (reason === 'time') { if (reason === 'time') {
thread.send( thread.send(
`<@${userID}>님, 60초동안 시작단어를 입력하지 않아 자동ㅇ으로 게임이 종료되었어요.`, `<@${userID}>님, 60초동안 시작단어를 입력하지 않아 자동ㅇ으로 게임이 종료되었어요.`,