Fixed undefined bug in bingo

This commit is contained in:
Dragon Fire
2020-06-28 20:21:06 -04:00
parent 913ef8f66d
commit 1a98756202
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ module.exports = class BingoCommand extends Command {
this.client.games.delete(msg.channel.id);
if (winner === 0) return msg.say('Everyone dropped out...');
if (!winner) return msg.say('I called the entire board, but no one called bingo...');
return msg.say(`Congrats, ${winner.user}!`);
return msg.say(`Congrats, ${winner}!`);
} catch (err) {
this.client.games.delete(msg.channel.id);
throw err;
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "116.40.0",
"version": "116.40.1",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {