This commit is contained in:
Daniel Odendahl Jr
2017-06-14 01:37:54 +00:00
parent 68ca766b36
commit 4a965b49ae
+1 -1
View File
@@ -16,7 +16,7 @@ module.exports = class HangmanCommand extends Command {
}
async run(msg) {
if (this.playing.includes(msg.guild.id)) return msg.say('Only one game may be occurring per server.');
if (this.playing.has(msg.guild.id)) return msg.say('Only one game may be occurring per server.');
this.playing.add(msg.guild.id);
const word = words[Math.floor(Math.random() * words.length)];
let points = 0;