diff options
| author | Alee <alee14498@gmail.com> | 2018-03-29 15:35:59 -0400 |
|---|---|---|
| committer | Alee <alee14498@gmail.com> | 2018-03-29 15:35:59 -0400 |
| commit | a6979e0ac8dbafa5cfe10510d6c8ad0e7e10cf74 (patch) | |
| tree | d0bc4b31a4411b8491f0a4c9902b2351f57baf99 /bot_discord.js | |
| parent | 322bf0ae247eaed29e62953ae4274612f694de92 (diff) | |
| download | AleeBot-a6979e0ac8dbafa5cfe10510d6c8ad0e7e10cf74.tar.gz AleeBot-a6979e0ac8dbafa5cfe10510d6c8ad0e7e10cf74.tar.bz2 AleeBot-a6979e0ac8dbafa5cfe10510d6c8ad0e7e10cf74.zip | |
Reverting things
Diffstat (limited to 'bot_discord.js')
| -rw-r--r-- | bot_discord.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bot_discord.js b/bot_discord.js index 2d9a488..02d7a7d 100644 --- a/bot_discord.js +++ b/bot_discord.js @@ -87,6 +87,7 @@ client.on('guildDelete', guild => { client.on('message', (msg) => {
+ if (msg.author.bot) return;
if (!msg.content.startsWith(prefix)) return;
const args = msg.content.slice(prefix.length).trim().split(/ +/g);
const command = args.shift();
|
