Small patches to make the code match currently used version.

This commit is contained in:
Alex 2020-08-22 23:35:22 -04:00
parent 94c1c53dd3
commit fb5dd54848
1 changed files with 3 additions and 3 deletions

View File

@ -26,12 +26,11 @@ client.on('ready', () => {
})
// List of channels with currently ongoing games
let lock = [];
let lock = [''];
client.on('message', async message => {
// Message processing
// Discards messages from bots
if (message.author.bot) return;
@ -44,6 +43,7 @@ client.on('message', async message => {
// The main function of this bot. To play games!
if (command === "play") {
// Makes it so one game at a time
if (lock.includes(message.channel.id)) return