mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-10 19:04:42 +02:00
Fixed undefined bug in bingo
This commit is contained in:
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "116.40.0",
|
||||
"version": "116.40.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user