From 0999d359a412ed9103d3b4ea9dc7e70bab88fa4b Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 6 Aug 2020 02:25:38 -0500 Subject: [PATCH] Re enable channel lock --- src/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 4726569..9342764 100644 --- a/src/index.js +++ b/src/index.js @@ -32,8 +32,8 @@ client.on('message', async message => { // Message processing // Only can be used in #linecon - // let okchannel = client.channels.cache.get("710574818222931968") - // if (!(message.channel === okchannel)) return; + let okchannel = client.channels.cache.get("710574818222931968") + if (!(message.channel === okchannel)) return; // Discards messages from bots if (message.author.bot) return; @@ -76,6 +76,7 @@ client.on('message', async message => { console.log(players) console.log(players.length + " players") + message.channel.send('<:BeachBall:739941658639990866> ' + (players[0].toString()).slice(19)).then(message => { message.react(config.emoteID).then(() => { const roundone = (reaction, user) => {