Remove waifu command

This commit is contained in:
Daniel Odendahl Jr
2018-05-25 19:05:17 +00:00
parent 0d965edc42
commit 1b89f860dd
4 changed files with 2 additions and 43 deletions
+1 -2
View File
@@ -15,7 +15,7 @@ You can invite the bot to your server using
Be sure to also join the [home server](https://discord.gg/sbMe32W) for
information and support.
## Commands (304)
## Commands (303)
### Utility:
* **prefix**: Shows or sets the command prefix.
@@ -88,7 +88,6 @@ information and support.
* **security-key**: Responds with a random security key.
* **shower-thought**: Responds with a random shower thought, directly from r/Showerthoughts.
* **user-roulette**: Randomly chooses a member of the server.
* **waifu**: Responds with a random image of one of dragonfire535's waifu.
* **would-you-rather**: Responds with a random "Would you rather ...?" question.
* **xiao**: Responds with a random image of Xiao Pai.
-14
View File
@@ -1,14 +0,0 @@
{
"Karen Kujou": "3oLAP",
"Kotori Habane": "1d9brai",
"Rune": "CxoVShV",
"Aqua": "p98ik3Q",
"Kirino Kousaka": "0gCVjxe",
"Koneko Toujou": "qdnensl",
"Megumin": "RduvUsk",
"Hatsune Miku": "4Z9cydo",
"Kagamine Rin": "aMdJrG3",
"Sagiri Izumi": "DIKbdcc",
"Saya Amanogawa": "A72k84T",
"Xiao Pai (That's Me!)": "S4e3r"
}
-26
View File
@@ -1,26 +0,0 @@
const { Command } = require('discord.js-commando');
const { randomFromImgurAlbum } = require('../../util/Util');
const waifus = require('../../assets/json/waifu');
module.exports = class WaifuCommand extends Command {
constructor(client) {
super(client, {
name: 'waifu',
group: 'random',
memberName: 'waifu',
description: 'Responds with a random image of one of dragonfire535\'s waifu.',
clientPermissions: ['ATTACH_FILES']
});
}
async run(msg) {
const waifuKeys = Object.keys(waifus);
const waifu = waifuKeys[Math.floor(Math.random() * waifuKeys.length)];
try {
const waifuImage = await randomFromImgurAlbum(waifus[waifu]);
return msg.say(waifu, { files: [waifuImage] });
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
}
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "77.0.4",
"version": "78.0.0",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {