From 31e8ad7a7f270c62032296d0a18c4004653a7a10 Mon Sep 17 00:00:00 2001 From: Migan178 Date: Sun, 28 Jul 2024 19:32:17 +0900 Subject: [PATCH] fix: Reverse return value --- package.json | 2 +- src/modules/wordRelay.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index de00ff9..05de2e4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "muffinbot", - "version": "3.0.0-cake.d240728a", + "version": "3.0.0-cake.d240728b", "main": "dist/index.js", "private": true, "dependencies": { diff --git a/src/modules/wordRelay.ts b/src/modules/wordRelay.ts index 3321cf3..63eba28 100644 --- a/src/modules/wordRelay.ts +++ b/src/modules/wordRelay.ts @@ -32,8 +32,8 @@ export class WordRelay { }, }).then(res => res.body.json()) - if (res.channel.total === 0) return true - else return false + if (res.channel.total === 0) return false + else return true } public startGame(msg: Message) { @@ -80,7 +80,7 @@ export class WordRelay { collector.stop(`${MAAWR_COLLECTED}: ${message.content}`) } }) - .on('end', (collected, reason) => { + .on('end', (_, reason) => { if (reason === 'time') { thread.send( `<@${userID}>님, 60초동안 시작단어를 입력하지 않아 자동ㅇ으로 게임이 종료되었어요.`,