diff options
| author | Unknown <jtsshieh@outlook.com> | 2018-02-24 14:59:35 -0500 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-02-24 14:59:35 -0500 |
| commit | c484753ee15dbe2a5ce9c6297f22fabb52ce3b7e (patch) | |
| tree | 93fd74f30abbd3c8206321b9d9c20b2571ed84ca /commands/Fun | |
| parent | 3d36bcf0591f2694c3a2472a157ecca0de8d35fc (diff) | |
| download | PokeBot-c484753ee15dbe2a5ce9c6297f22fabb52ce3b7e.tar.gz PokeBot-c484753ee15dbe2a5ce9c6297f22fabb52ce3b7e.tar.bz2 PokeBot-c484753ee15dbe2a5ce9c6297f22fabb52ce3b7e.zip | |
New Command system
Diffstat (limited to 'commands/Fun')
| -rw-r--r-- | commands/Fun/8ball.js | 47 | ||||
| -rw-r--r-- | commands/Fun/cureboredom.js | 23 | ||||
| -rw-r--r-- | commands/Fun/og151.js | 167 | ||||
| -rw-r--r-- | commands/Fun/ship.js | 13 | ||||
| -rw-r--r-- | commands/Fun/story.js | 27 |
5 files changed, 277 insertions, 0 deletions
diff --git a/commands/Fun/8ball.js b/commands/Fun/8ball.js new file mode 100644 index 0000000..3ebd1c3 --- /dev/null +++ b/commands/Fun/8ball.js @@ -0,0 +1,47 @@ +exports.run = async (bot, msg, args) => { + if (args.length < 1) return msg.reply('You need to ask the 8-ball something for it to respond!'); + + const responses = [ + 'May the odds ever be in your favor...', + 'Definetely not! Did you ever think that this would work?', + 'Most definetely', + 'Seems probable..', + 'Sure, why not?', + 'No!', + 'Probably.', + 'If a sentience can do a backflip, then this can happen!', + 'It is certain', + 'It is decidedly so', + 'Without a doubt', + 'Yes definitely', + 'You may rely on it', + 'As I see it, yes', + 'Most likely', + 'Outlook good', + 'Yes', + 'Signs point to yes', + 'Reply hazy try again', + 'Ask again later', + 'Better not tell you now', + 'Cannot predict now', + 'Concentrate and ask again', + 'Don\'t count on it', + 'My reply is no', + 'My sources say no', + 'Outlook not so good', + 'Very doubtful', + ]; + + msg.channel.send(':8ball: *' + (responses[Math.floor(Math.random() * responses.length)]) + '*'); +}; + +exports.conf = { + aliases: [], + guildOnly: true, +}; + +exports.help = { + name: '8ball', + description: 'Ask the magic 8-ball something. It will answer back, and be as much of a smart-alac as it wants to.', + usage: '<...question>', +}; diff --git a/commands/Fun/cureboredom.js b/commands/Fun/cureboredom.js new file mode 100644 index 0000000..9996645 --- /dev/null +++ b/commands/Fun/cureboredom.js @@ -0,0 +1,23 @@ +exports.run = (bot, msg, args) => { + const ideas = [ + 'Pokemon Go to the polls :ballot_box:', + 'Consuming Maccas :fries:', + 'Fighting AstralMod :right_facing_fist:', + 'Joining a team :handshake:', + 'Have a battle :crossed_swords:', + ]; + + if (args[0] === 'list') return msg.channel.send(ideas.join('\n')); + + msg.channel.send(ideas[Math.floor(Math.random() * ideas.length)]); +}; + +exports.conf = { + aliases: [], + guildOnly: true, +}; + +exports.help = { + name: 'cureboredom', + description: 'Finds you something to do.', +}; diff --git a/commands/Fun/og151.js b/commands/Fun/og151.js new file mode 100644 index 0000000..bda9059 --- /dev/null +++ b/commands/Fun/og151.js @@ -0,0 +1,167 @@ +exports.run = (bot, msg) => { + const pokemon = [ + 'Abra', + 'Aerodactyl', + 'Alakazam', + 'Arbok', + 'Arcanine', + 'Articuno', + 'Beedrill', + 'Bellsprout', + 'Blastoise', + 'Bulbasaur', + 'Butterfree', + 'Caterpie', + 'Chansey', + 'Charizard', + 'Charmander', + 'Charmeleon', + 'Clefable', + 'Clefairy', + 'Cloyster', + 'Cubone', + 'Dewgong', + 'Diglett', + 'Ditto', + 'Dodrio', + 'Doduo', + 'Dragonair', + 'Dragonite', + 'Dratini', + 'Drowzee', + 'Dugtrio', + 'Eevee', + 'Ekans', + 'Electabuzz', + 'Electrode', + 'Exeggcute', + 'Exeggutor', + 'Farfetch’d', + 'Fearow', + 'Flareon', + 'Gastly', + 'Gengar', + 'Geodude', + 'Gloom', + 'Golbat', + 'Goldeen', + 'Golduck', + 'Golem', + 'Graveler', + 'Grimer', + 'Growlithe', + 'Gyarados', + 'Haunter', + 'Hitmonchan', + 'Hitmonlee', + 'Horsea', + 'Hypno', + 'Ivysaur', + 'Jigglypuff', + 'Jolteon', + 'Jynx', + 'Kabuto', + 'Kabutops', + 'Kadabra', + 'Kakuna', + 'Kangaskhan', + 'Kingler', + 'Koffing', + 'Krabby', + 'Lapras', + 'Lickitung', + 'Machamp', + 'Machoke', + 'Machop', + 'Magikarp', + 'Magmar', + 'Magnemite', + 'Magneton', + 'Mankey', + 'Marowak', + 'Meowth', + 'Metapod', + 'Mew', + 'Mewtwo', + 'Moltres', + 'Mr. Mime', + 'Muk', + 'Nidoking', + 'Nidoqueen', + 'Nidoran♀', + 'Nidoran♂', + 'Nidorina', + 'Nidorino', + 'Ninetales', + 'Oddish', + 'Omanyte', + 'Omastar', + 'Onix', + 'Paras', + 'Parasect', + 'Persian', + 'Pidgeot', + 'Pidgeotto', + 'Pidgey', + 'Pikachu', + 'Pinsir', + 'Poliwag', + 'Poliwhirl', + 'Poliwrath', + 'Ponyta', + 'Porygon', + 'Primeape', + 'Psyduck', + 'Raichu', + 'Rapidash', + 'Raticate', + 'Rattata', + 'Rhydon', + 'Rhyhorn', + 'Sandshrew', + 'Sandslash', + 'Scyther', + 'Seadra', + 'Seaking', + 'Seel', + 'Shellder', + 'Slowbro', + 'Slowpoke', + 'Snorlax', + 'Spearow', + 'Squirtle', + 'Starmie', + 'Staryu', + 'Tangela', + 'Tauros', + 'Tentacool', + 'Tentacruel', + 'Vaporeon', + 'Venomoth', + 'Venonat', + 'Venusaur', + 'Victreebel', + 'Vileplume', + 'Voltorb', + 'Vulpix', + 'Wartortle', + 'Weedle', + 'Weepinbell', + 'Weezing', + 'Wigglytuff', + 'Zapdos', + 'Zubat', + ]; + + msg.channel.send(pokemon[Math.floor(Math.random() * pokemon.length)]); +}; + +exports.conf = { + aliases: [], + guildOnly: true, +}; + +exports.help = { + name: 'og151', + description: 'Randomly picks one of the generation 1 pokemon, and gives you its name.', +}; diff --git a/commands/Fun/ship.js b/commands/Fun/ship.js new file mode 100644 index 0000000..ed8cf69 --- /dev/null +++ b/commands/Fun/ship.js @@ -0,0 +1,13 @@ +exports.run = (bot, msg) => { + msg.channel.send(msg.author.username + ' x ' + msg.guild.members.random().displayName + ' :cruise_ship:'); +}; + +exports.conf = { + aliases: [], + guildOnly: true, +}; + +exports.help = { + name: 'ship', + description: 'Test the luck of your love life! Ships you with another user.', +}; diff --git a/commands/Fun/story.js b/commands/Fun/story.js new file mode 100644 index 0000000..037b7cb --- /dev/null +++ b/commands/Fun/story.js @@ -0,0 +1,27 @@ +exports.run = async (bot, msg) => { + msg.guild.fetchMembers().then(guild => + { + const membersList = guild.members.array(); + const selectedUser1 = membersList[Math.floor(Math.random() * membersList.length)].user; + const selectedUser2 = membersList[Math.floor(Math.random() * membersList.length)].user; + const selectedUser3 = membersList[Math.floor(Math.random() * membersList.length)].user; + + const stories = + [ + 'Story 1 Alee says it\'s coming soon!.', + `Story 2 ${selectedUser1.username} jumps into the window then ${selectedUser2.username} saves ${selectedUser1.username} and ${selectedUser3.username} claps.`, + ]; + const storySelected = [Math.floor(Math.random() * stories.length)]; + msg.channel.send(stories[storySelected]); + }); +}; + +exports.conf = { + aliases: [], + guildOnly: true, +}; + +exports.help = { + name: 'story', + description: 'Tells you a story.', +}; |
