kemonomimi Command

This commit is contained in:
Dragon Fire
2021-04-06 10:10:09 -04:00
parent fb189f8e12
commit e834af8a76
2 changed files with 33 additions and 1 deletions
+32
View File
@@ -0,0 +1,32 @@
const Command = require('../../structures/Command');
const request = require('node-superfetch');
module.exports = class KemonomimiCommand extends Command {
constructor(client) {
super(client, {
name: 'kemonomimi',
aliases: ['cat-girl', 'nekomusume', '猫娘', '獣耳'],
group: 'random-img',
memberName: 'kemonomimi',
description: 'Responds with a random kemonomimi image.',
clientPermissions: ['ATTACH_FILES'],
credit: [
{
name: 'noticeme.moe',
url: 'https://noticeme.moe/',
reason: 'API',
reasonURL: 'https://noticeme.moe/kemonomimi.php'
}
]
});
}
async run(msg) {
try {
const { body } = await request.get('https://noticeme.moe/kemonomimi.php');
return msg.say({ files: [body] });
} 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": "134.9.0",
"version": "134.10.0",
"description": "Your personal server companion.",
"main": "Xiao.js",
"private": true,