mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Remove waifu command
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "77.0.4",
|
||||
"version": "78.0.0",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user