From 22c14b22a07bfcf814c00b654e3e96fc1d31769f Mon Sep 17 00:00:00 2001 From: Alee14 Date: Sat, 12 Aug 2017 02:31:13 -0400 Subject: New command --- aleebot.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/aleebot.js b/aleebot.js index 7f3f800..c9a09aa 100644 --- a/aleebot.js +++ b/aleebot.js @@ -14,7 +14,7 @@ const config = require('./absettings.json'); const prefix = "ab:"; const year = "2017"; -var abversion = "1.0.8.1"; +var abversion = "1.0.8.3"; var logsChannel = "318874545593384970"; client.on('ready', () => { @@ -95,6 +95,7 @@ client.on("message", function(message){ '**'+prefix+'owner** Shows who made this bot.\n' + '**'+prefix+'suggest** You suggest things (working progress).\n' + '**'+prefix+'uptime** It tells you how long AleeBot has been on for.\n' + + '**'+prefix+"ask** Go ask AleeBot a question and he will respond an answer.\n" + '**'+prefix+'userinfo** Tells you your info about you.\n' + '**'+prefix+'botinvite** Lets you bring AleeBot to your server.\n' + '**'+prefix+'serverinvite** Invites you to the AleeArmy Server.\n' + @@ -241,6 +242,20 @@ commandProcessed = true; commandProcessed = true; } + if(command === 'ask'){ + var abaskanswer = [ + "Yes.", + "No.", + "Maybe.", + "I don't know?" + ]; + 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.") + } + + } }); -- cgit v1.2.3