diff options
| author | Unknown <Alee14498@gmail.com> | 2017-10-21 10:34:10 -0400 |
|---|---|---|
| committer | Unknown <Alee14498@gmail.com> | 2017-10-21 10:34:10 -0400 |
| commit | 2f86cd8a3b0fc12db6b36b161dd8714ae82c1809 (patch) | |
| tree | a9278147483ce59a5919d88eb26e33dcc162aa8c | |
| parent | b0b161fa19457c027dfcd0dc1cdd22cc0bb2217b (diff) | |
| download | AstralMod-ATC-2f86cd8a3b0fc12db6b36b161dd8714ae82c1809.tar.gz AstralMod-ATC-2f86cd8a3b0fc12db6b36b161dd8714ae82c1809.tar.bz2 AstralMod-ATC-2f86cd8a3b0fc12db6b36b161dd8714ae82c1809.zip | |
Fixes
| -rw-r--r-- | bot.js | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1352,6 +1352,10 @@ function messageChecker(oldMessage, newMessage) { commandProcessed = true; } else if (command.startsWith("suggest")) { command = command.substr(8); + if (message.guild.id == 368206021526552576) { + if (!message.member.roles.has("371303033180782593") && !isMod(message.member)) { + message.reply(":no_entry_sign: ERROR: Suggestions have been restricted to regulars on this server. Become a regular or speak directly to an admin to suggest something."); + } else { suggestStates[message.author.id] = {}; suggestStates[message.author.id].state = 1; suggestStates[message.author.id].guild = message.guild.id; @@ -1360,7 +1364,7 @@ function messageChecker(oldMessage, newMessage) { message.reply(":arrow_left: Continue in DMs."); message.author.send(suggestionStartMessage); - + } } else { message.reply(":no_entry_sign: ERROR: Suggestions are not accepted on this server via AstralMod. Speak directly to an admin to suggest something."); } |
