diff options
| author | pokesudenk <thisis@notarealema.il> | 2018-03-09 21:18:53 -0500 |
|---|---|---|
| committer | pokesudenk <thisis@notarealema.il> | 2018-03-09 21:18:53 -0500 |
| commit | bfac5167c4f465b9ec6ec02ff5179a94ccfb739d (patch) | |
| tree | 4a14a729520767c52d4a3fa370f020682d082ea2 /commands | |
| parent | b5f4a88f857025b223ff4b318e22da1aae649d03 (diff) | |
| download | PokeBot-bfac5167c4f465b9ec6ec02ff5179a94ccfb739d.tar.gz PokeBot-bfac5167c4f465b9ec6ec02ff5179a94ccfb739d.tar.bz2 PokeBot-bfac5167c4f465b9ec6ec02ff5179a94ccfb739d.zip | |
excessivehardcoding?
Diffstat (limited to 'commands')
| -rw-r--r-- | commands/Fun/slots.js | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/commands/Fun/slots.js b/commands/Fun/slots.js new file mode 100644 index 0000000..ca5f585 --- /dev/null +++ b/commands/Fun/slots.js @@ -0,0 +1,70 @@ +/** ************************************** + * + * FindMyPhone: Plugin for PokeBot that "helps you find your phone". + * Copyright (C) 2018 TheEdge, jtsshieh, Alee + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + * *************************************/ + +exports.run = (bot, msg) => { + const slot1 = [ + ':one:', + ':two:', + ':three:', + ':four:', + ':five:', + ':six:', + ':seven:', + ':eight:', + ':nine:', + ]; + + const slot2 = [ + ':one:', + ':two:', + ':three:', + ':four:', + ':five:', + ':six:', + ':seven:', + ':eight:', + ':nine:', + ]; + + const slot3 = [ + ':one:', + ':two:', + ':three:', + ':four:', + ':five:', + ':six:', + ':seven:', + ':eight:', + ':nine:', + ]; + + msg.channel.send('If the numbers are sequenced forwards or backwards, you win!\n\n> ' + slot1[Math.floor(Math.random() * slot1.length)] + ' ' + slot2[Math.floor(Math.random() * slot2.length)] + ' ' + slot3[Math.floor(Math.random() * slot3.length)]); + }; + + exports.conf = { + aliases: [], + guildOnly: true, + }; + + exports.help = { + name: 'slots', + description: 'Develop a gambling addiction by playing Slots!', + }; +
\ No newline at end of file |
