mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 22:34:46 +02:00
Remove bird, shiba, google-doodle
This commit is contained in:
@@ -1,33 +0,0 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { PermissionFlagsBits } = require('discord.js');
|
||||
const request = require('node-superfetch');
|
||||
|
||||
module.exports = class BirdCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'bird',
|
||||
aliases: ['birb'],
|
||||
group: 'random-img',
|
||||
description: 'Responds with a random image of a bird.',
|
||||
clientPermissions: [PermissionFlagsBits.AttachFiles],
|
||||
credit: [
|
||||
{
|
||||
name: 'shibe.online',
|
||||
url: 'https://shibe.online/',
|
||||
reason: 'API'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
async run(msg) {
|
||||
const { body } = await request
|
||||
.get('https://shibe.online/api/birds')
|
||||
.query({
|
||||
count: 1,
|
||||
urls: true,
|
||||
httpsUrls: true
|
||||
});
|
||||
return msg.say({ files: [body[0]] });
|
||||
}
|
||||
};
|
||||
@@ -1,33 +0,0 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { PermissionFlagsBits } = require('discord.js');
|
||||
const request = require('node-superfetch');
|
||||
|
||||
module.exports = class ShibaCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'shiba',
|
||||
aliases: ['shiba-inu', 'shibe', 'shibe-inu', 'doge'],
|
||||
group: 'random-img',
|
||||
description: 'Responds with a random image of a Shiba Inu.',
|
||||
clientPermissions: [PermissionFlagsBits.AttachFiles],
|
||||
credit: [
|
||||
{
|
||||
name: 'shibe.online',
|
||||
url: 'https://shibe.online/',
|
||||
reason: 'API'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
async run(msg) {
|
||||
const { body } = await request
|
||||
.get('https://shibe.online/api/shibes')
|
||||
.query({
|
||||
count: 1,
|
||||
urls: true,
|
||||
httpsUrls: true
|
||||
});
|
||||
return msg.say({ files: [body[0]] });
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user