summaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorAlee14 <Alee14498@gmail.com>2017-10-03 18:00:22 -0400
committerGitHub <noreply@github.com>2017-10-03 18:00:22 -0400
commitd9eab29ab1f4e3a0ccbc299c8a2c0c6624d2f6cc (patch)
tree081ca559e68beb0c70361aebea05e0b3a14fcc7f /commands
parent4840622368fdabb07ea53386fbe6ec08074d5bca (diff)
downloadAleeBot-d9eab29ab1f4e3a0ccbc299c8a2c0c6624d2f6cc.tar.gz
AleeBot-d9eab29ab1f4e3a0ccbc299c8a2c0c6624d2f6cc.tar.bz2
AleeBot-d9eab29ab1f4e3a0ccbc299c8a2c0c6624d2f6cc.zip
Minor updates on ab:say (#7)
Diffstat (limited to 'commands')
-rw-r--r--commands/eval.js10
-rw-r--r--commands/say.js6
2 files changed, 9 insertions, 7 deletions
diff --git a/commands/eval.js b/commands/eval.js
index 2716cb8..a2cdbb4 100644
--- a/commands/eval.js
+++ b/commands/eval.js
@@ -51,11 +51,11 @@ const argseval = message.content.split(" ").slice(1);
{
name: '**Output**',
value: `\`\`\`js\n${clean(evaled)}\n\`\`\``
- }
- ],
- }
- })
- }
+ }
+ ],
+ }
+ })
+ }
}
exports.conf = {
diff --git a/commands/say.js b/commands/say.js
index f32544b..fa9022f 100644
--- a/commands/say.js
+++ b/commands/say.js
@@ -1,9 +1,11 @@
const Discord = require('discord.js');
exports.run = (client, message, args, config) => {
- if(message.author.id !== config.ownerID) return;
+ if(message.author.id !== config.ownerID)
+ message.reply(":no_entry: **NOPE!** Sorry buddy Alee is only allow to say this command.")
+ else {
message.channel.sendMessage(args.join(" "));
message.delete();
-
+ }
}
exports.conf = {