aboutsummaryrefslogtreecommitdiff
path: root/aleebot.js
diff options
context:
space:
mode:
authorUnknown <Alee14498@gmail.com>2017-08-16 00:04:57 -0400
committerUnknown <Alee14498@gmail.com>2017-08-16 00:04:57 -0400
commit9eaef9711fe1d1847a85631d653894aecfa404f7 (patch)
tree6e8c265e957bd4bbd1f1b1e06ed3ea6301f33b0e /aleebot.js
parentfef7b2b74fa38a5a3124539793ef65b0e3bf7f5c (diff)
downloadAleeBot-9eaef9711fe1d1847a85631d653894aecfa404f7.tar.gz
AleeBot-9eaef9711fe1d1847a85631d653894aecfa404f7.tar.bz2
AleeBot-9eaef9711fe1d1847a85631d653894aecfa404f7.zip
Bot will now ignore DMs
Diffstat (limited to 'aleebot.js')
-rw-r--r--aleebot.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/aleebot.js b/aleebot.js
index c9da749..38f5eb9 100644
--- a/aleebot.js
+++ b/aleebot.js
@@ -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];