Small patches to make the code match currently used version.
This commit is contained in:
parent
94c1c53dd3
commit
fb5dd54848
@ -26,12 +26,11 @@ client.on('ready', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
// List of channels with currently ongoing games
|
// List of channels with currently ongoing games
|
||||||
let lock = [];
|
let lock = [''];
|
||||||
|
|
||||||
client.on('message', async message => {
|
client.on('message', async message => {
|
||||||
|
|
||||||
// Message processing
|
// Message processing
|
||||||
|
|
||||||
|
|
||||||
// Discards messages from bots
|
// Discards messages from bots
|
||||||
if (message.author.bot) return;
|
if (message.author.bot) return;
|
||||||
|
|
||||||
@ -44,6 +43,7 @@ client.on('message', async message => {
|
|||||||
|
|
||||||
// The main function of this bot. To play games!
|
// The main function of this bot. To play games!
|
||||||
if (command === "play") {
|
if (command === "play") {
|
||||||
|
|
||||||
// Makes it so one game at a time
|
// Makes it so one game at a time
|
||||||
if (lock.includes(message.channel.id)) return
|
if (lock.includes(message.channel.id)) return
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user