diff options
| author | Alee14 <Alee14498@gmail.com> | 2017-08-12 02:31:13 -0400 |
|---|---|---|
| committer | Alee14 <Alee14498@gmail.com> | 2017-08-12 02:31:13 -0400 |
| commit | 22c14b22a07bfcf814c00b654e3e96fc1d31769f (patch) | |
| tree | c9c838f95dc86f944e2f19add850406353833873 | |
| parent | 58266469be4210bfe982f3c202eb9febdbf13379 (diff) | |
| download | AleeBot-22c14b22a07bfcf814c00b654e3e96fc1d31769f.tar.gz AleeBot-22c14b22a07bfcf814c00b654e3e96fc1d31769f.tar.bz2 AleeBot-22c14b22a07bfcf814c00b654e3e96fc1d31769f.zip | |
New command
| -rw-r--r-- | aleebot.js | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -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.") + } + + } }); |
