mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
kemonomimi Command
This commit is contained in:
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "134.9.0",
|
||||
"version": "134.10.0",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"private": true,
|
||||
|
||||
Reference in New Issue
Block a user