diff options
| author | Unknown <Alee14498@gmail.com> | 2017-08-16 00:04:57 -0400 |
|---|---|---|
| committer | Unknown <Alee14498@gmail.com> | 2017-08-16 00:04:57 -0400 |
| commit | 9eaef9711fe1d1847a85631d653894aecfa404f7 (patch) | |
| tree | 6e8c265e957bd4bbd1f1b1e06ed3ea6301f33b0e | |
| parent | fef7b2b74fa38a5a3124539793ef65b0e3bf7f5c (diff) | |
| download | AleeBot-9eaef9711fe1d1847a85631d653894aecfa404f7.tar.gz AleeBot-9eaef9711fe1d1847a85631d653894aecfa404f7.tar.bz2 AleeBot-9eaef9711fe1d1847a85631d653894aecfa404f7.zip | |
Bot will now ignore DMs
| -rw-r--r-- | aleebot.js | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -77,6 +77,7 @@ client.on("guildDelete", guild => { client.on("message", function(message){ if (message.author.bot) return; + if (message.channel.type === "dm") return; if (!message.content.startsWith(prefix)) return; let command = message.content.split(" ")[0]; |
