oops
This commit is contained in:
parent
4e91ba17f8
commit
3b7defd187
2
index.js
2
index.js
|
@ -836,7 +836,6 @@ client.on('messageCreate', async message => {
|
||||||
if (message.author.bot) return;
|
if (message.author.bot) return;
|
||||||
if (!message.guild) return;
|
if (!message.guild) return;
|
||||||
if (message.channel.type == "dm") return;
|
if (message.channel.type == "dm") return;
|
||||||
if (!config.games.wordscramble.whitelist.includes(message.channel.id) && !config.games.wordscramble.whitelist.includes(message.channel.parentId)) return;
|
|
||||||
// Check if the channel already has a word scramble going
|
// Check if the channel already has a word scramble going
|
||||||
if (wordScrambles[message.channel.id]) {
|
if (wordScrambles[message.channel.id]) {
|
||||||
if (wordScrambles[message.channel.id].badGuesses.includes(message.author.id)) return;
|
if (wordScrambles[message.channel.id].badGuesses.includes(message.author.id)) return;
|
||||||
|
@ -859,6 +858,7 @@ client.on('messageCreate', async message => {
|
||||||
wordScrambles[message.channel.id].badGuesses.push(message.author.id);
|
wordScrambles[message.channel.id].badGuesses.push(message.author.id);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (!config.games.wordscramble.whitelist.includes(message.channel.id) && !config.games.wordscramble.whitelist.includes(message.channel.parentId)) return;
|
||||||
curCooldown = await checkCooldown({ id: 0 }, "wordscramble")
|
curCooldown = await checkCooldown({ id: 0 }, "wordscramble")
|
||||||
if (curCooldown) {
|
if (curCooldown) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue