From 586109f40295561a311740eb9e870f5a8b71648f Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Wed, 8 Nov 2017 02:32:40 +0000 Subject: [PATCH] Wynaut and Pikachu --- assets/json/pikachu.json | 27 +++++++++++++++++++++++++++ commands/random-res/pikachu.js | 19 +++++++++++++++++++ commands/single-res/wynaut.js | 18 ++++++++++++++++++ package.json | 2 +- 4 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 assets/json/pikachu.json create mode 100644 commands/random-res/pikachu.js create mode 100644 commands/single-res/wynaut.js diff --git a/assets/json/pikachu.json b/assets/json/pikachu.json new file mode 100644 index 00000000..49ca6fa8 --- /dev/null +++ b/assets/json/pikachu.json @@ -0,0 +1,27 @@ +[ + "https://i.imgur.com/7yQdFC2.jpg", + "https://i.imgur.com/76S8DP5.jpg", + "https://i.imgur.com/2OmeiAr.jpg", + "https://i.imgur.com/kHaOJhF.jpg", + "https://i.imgur.com/SS0edvc.jpg", + "https://i.imgur.com/T41LFTl.png", + "https://i.imgur.com/BxZaxCM.png", + "https://i.imgur.com/8kdR6Pn.png", + "https://i.imgur.com/Ygt9WwI.jpg", + "https://i.imgur.com/8sUZzzf.jpg", + "https://i.imgur.com/m160og9.jpg", + "https://i.imgur.com/HharYbL.jpg", + "https://i.imgur.com/hroKoWi.jpg", + "https://i.imgur.com/NWxk4Lu.jpg", + "https://i.imgur.com/SUFg7LM.png", + "https://i.imgur.com/lcmlAlK.png", + "https://i.imgur.com/dCJItk8.jpg", + "https://i.imgur.com/iSzuoCl.jpg", + "https://i.imgur.com/PjfSo5K.jpg", + "https://i.imgur.com/Ln88AEW.png", + "https://i.imgur.com/1IX39AP.gif", + "https://i.imgur.com/AYu5QF1.png", + "https://i.imgur.com/dAvcP4K.png", + "https://i.imgur.com/tsul2xB.jpg", + "https://i.imgur.com/pESXaS0.jpg" +] diff --git a/commands/random-res/pikachu.js b/commands/random-res/pikachu.js new file mode 100644 index 00000000..9863af90 --- /dev/null +++ b/commands/random-res/pikachu.js @@ -0,0 +1,19 @@ +const { Command } = require('discord.js-commando'); +const pikachus = require('../../assets/json/pikachu'); + +module.exports = class PikachuCommand extends Command { + constructor(client) { + super(client, { + name: 'pikachu', + aliases: ['pika'], + group: 'random-res', + memberName: 'pikachu', + description: 'Responds with a random image of Pikachu.', + clientPermissions: ['ATTACH_FILES'] + }); + } + + run(msg) { + return msg.say({ files: [pikachus[Math.floor(Math.random() * pikachus.length)]] }); + } +}; diff --git a/commands/single-res/wynaut.js b/commands/single-res/wynaut.js new file mode 100644 index 00000000..899f7317 --- /dev/null +++ b/commands/single-res/wynaut.js @@ -0,0 +1,18 @@ +const { Command } = require('discord.js-commando'); + +module.exports = class WynautCommand extends Command { + constructor(client) { + super(client, { + name: 'wynaut', + aliases: ['why-not'], + group: 'single-res', + memberName: 'wynaut', + description: 'Why not? Wynaut?', + clientPermissions: ['ATTACH_FILES'] + }); + } + + run(msg) { + return msg.say({ files: ['https://i.imgur.com/6ew9ysx.png'] }); + } +}; diff --git a/package.json b/package.json index 90aabd70..312d96bf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiaobot", - "version": "53.0.0", + "version": "53.1.0", "description": "Your personal server companion.", "main": "XiaoBot.js", "scripts": {