summaryrefslogtreecommitdiff
path: root/commands/ask.js
diff options
context:
space:
mode:
authorUnknown <Alee14498@gmail.com>2017-08-17 01:40:08 -0400
committerUnknown <Alee14498@gmail.com>2017-08-17 01:40:08 -0400
commit2a8c799d7a9ad46f398c5e2feb448140eecbc638 (patch)
tree60883532c86f70a713fc3af6a8584edeb044811b /commands/ask.js
parenta8d005f965dc66a05316db7bc723eaddbc5399ee (diff)
downloadAleeBot-1.1.0.tar.gz
AleeBot-1.1.0.tar.bz2
AleeBot-1.1.0.zip
Official 1.1.0 release!v1.1.0
Changelog: New command handler!
Diffstat (limited to 'commands/ask.js')
-rw-r--r--commands/ask.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/commands/ask.js b/commands/ask.js
new file mode 100644
index 0000000..a87cb8a
--- /dev/null
+++ b/commands/ask.js
@@ -0,0 +1,19 @@
+const Discord = require('discord.js');
+exports.run = (client, message, args, config) => {
+var abaskanswer = [
+ "Yes.",
+ "Nope. Just kidding :P",
+ "Definitely!",
+ "No.",
+ "Yep. Just kidding :P",
+ "I doubt it.",
+ "Maybe?",
+ "I don't know?",
+ "Hmm let me think :thinking:"
+];
+if (args[1]) {
+ message.channel.sendMessage(abaskanswer[Math.floor(Math.random() * abaskanswer.length)]);
+} else {
+ message.channel.sendMessage("Sorry, I don't know what your saying.")
+}
+}