This commit is contained in:
Daniel Odendahl Jr
2018-01-15 02:58:22 +00:00
parent decc79ada6
commit 5b7f587d1e
3 changed files with 34 additions and 2 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ module.exports = class HangmanCommand extends Command {
this.playing = new Set();
}
async run(msg) {
async run(msg) { // eslint-disable-line complexity
if (this.playing.has(msg.channel.id)) return msg.reply('Only one game may be occurring per channel.');
this.playing.add(msg.channel.id);
try {