aboutsummaryrefslogtreecommitdiff
path: root/aleebot.js
diff options
context:
space:
mode:
authorAlee14 <Alee14498@gmail.com>2017-08-12 18:41:21 -0400
committerAlee14 <Alee14498@gmail.com>2017-08-12 18:41:21 -0400
commit18c9770a47b28255f955549c7d9247d37d1b1570 (patch)
tree17e1a4a84a3b0720fa850ffd711f18337186943b /aleebot.js
parent4600cc920fda020cbef37f73a32e57077319943d (diff)
downloadAleeBot-18c9770a47b28255f955549c7d9247d37d1b1570.tar.gz
AleeBot-18c9770a47b28255f955549c7d9247d37d1b1570.tar.bz2
AleeBot-18c9770a47b28255f955549c7d9247d37d1b1570.zip
Bug fixes
Diffstat (limited to 'aleebot.js')
-rw-r--r--aleebot.js11
1 files changed, 3 insertions, 8 deletions
diff --git a/aleebot.js b/aleebot.js
index f659cab..5bdf1dd 100644
--- a/aleebot.js
+++ b/aleebot.js
@@ -256,17 +256,12 @@ commandProcessed = true;
}
}
-
+// Owner is only allow to do this
if(command === 'say'){
- if(message.author.id !== config.ownerID){
-
- } else {
- message.reply("Hey! You're not Alee14!")
- }
- return;
+ if(message.author.id !== config.ownerID) return;
message.channel.sendMessage(args.join(" "));
message.delete();
-
+
}
if(command === 'eval'){
if(message.author.id !== config.ownerID) return;