Small patches to make the code match currently used version.

master
Alex 2 years ago
parent 94c1c53dd3
commit fb5dd54848

@ -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
// 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

Loading…
Cancel
Save