mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 05:54:33 +02:00
Discord.js v14
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { PermissionFlagsBits } = require('discord.js');
|
||||
const request = require('node-superfetch');
|
||||
|
||||
module.exports = class BirdCommand extends Command {
|
||||
@@ -9,7 +10,7 @@ module.exports = class BirdCommand extends Command {
|
||||
group: 'random-img',
|
||||
memberName: 'bird',
|
||||
description: 'Responds with a random image of a bird.',
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
clientPermissions: [PermissionFlagsBits.AttachFiles],
|
||||
credit: [
|
||||
{
|
||||
name: 'shibe.online',
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { PermissionFlagsBits } = require('discord.js');
|
||||
const request = require('node-superfetch');
|
||||
const facts = require('../../assets/json/bunny-fact');
|
||||
|
||||
@@ -10,7 +11,7 @@ module.exports = class BunnyCommand extends Command {
|
||||
group: 'random-img',
|
||||
memberName: 'bunny',
|
||||
description: 'Responds with a random bunny image and fact.',
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
clientPermissions: [PermissionFlagsBits.AttachFiles],
|
||||
credit: [
|
||||
{
|
||||
name: 'bunnies.io',
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { PermissionFlagsBits } = require('discord.js');
|
||||
const request = require('node-superfetch');
|
||||
const facts = require('../../assets/json/cat-fact');
|
||||
const { THECATAPI_KEY } = process.env;
|
||||
@@ -11,7 +12,7 @@ module.exports = class CatCommand extends Command {
|
||||
group: 'random-img',
|
||||
memberName: 'cat',
|
||||
description: 'Responds with a random cat image and fact.',
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
clientPermissions: [PermissionFlagsBits.AttachFiles],
|
||||
credit: [
|
||||
{
|
||||
name: 'TheCatAPI',
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { PermissionFlagsBits } = require('discord.js');
|
||||
const request = require('node-superfetch');
|
||||
const facts = require('../../assets/json/dog-fact');
|
||||
const { THEDOGAPI_KEY } = process.env;
|
||||
@@ -11,7 +12,7 @@ module.exports = class DogCommand extends Command {
|
||||
group: 'random-img',
|
||||
memberName: 'dog',
|
||||
description: 'Responds with a random dog image and fact.',
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
clientPermissions: [PermissionFlagsBits.AttachFiles],
|
||||
credit: [
|
||||
{
|
||||
name: 'TheDogAPI',
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { PermissionFlagsBits } = require('discord.js');
|
||||
const request = require('node-superfetch');
|
||||
|
||||
module.exports = class DuckCommand extends Command {
|
||||
@@ -9,7 +10,7 @@ module.exports = class DuckCommand extends Command {
|
||||
group: 'random-img',
|
||||
memberName: 'duck',
|
||||
description: 'Responds with a random duck image.',
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
clientPermissions: [PermissionFlagsBits.AttachFiles],
|
||||
credit: [
|
||||
{
|
||||
name: 'Random-d.uk',
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { PermissionFlagsBits } = require('discord.js');
|
||||
const request = require('node-superfetch');
|
||||
|
||||
module.exports = class FoxCommand extends Command {
|
||||
@@ -8,7 +9,7 @@ module.exports = class FoxCommand extends Command {
|
||||
group: 'random-img',
|
||||
memberName: 'fox',
|
||||
description: 'Responds with a random fox image.',
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
clientPermissions: [PermissionFlagsBits.AttachFiles],
|
||||
credit: [
|
||||
{
|
||||
name: 'RandomFox',
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { PermissionFlagsBits } = require('discord.js');
|
||||
|
||||
module.exports = class FrogCommand extends Command {
|
||||
constructor(client) {
|
||||
@@ -8,7 +9,7 @@ module.exports = class FrogCommand extends Command {
|
||||
group: 'random-img',
|
||||
memberName: 'frog',
|
||||
description: 'Responds with a random frog image.',
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
clientPermissions: [PermissionFlagsBits.AttachFiles],
|
||||
credit: [
|
||||
{
|
||||
name: 'FROGLAND!',
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { PermissionFlagsBits } = require('discord.js');
|
||||
const request = require('node-superfetch');
|
||||
|
||||
module.exports = class GooseCommand extends Command {
|
||||
@@ -9,7 +10,7 @@ module.exports = class GooseCommand extends Command {
|
||||
group: 'random-img',
|
||||
memberName: 'goose',
|
||||
description: 'Responds with a random goose image.',
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
clientPermissions: [PermissionFlagsBits.AttachFiles],
|
||||
credit: [
|
||||
{
|
||||
name: 'nekos.life',
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { PermissionFlagsBits } = require('discord.js');
|
||||
const request = require('node-superfetch');
|
||||
|
||||
module.exports = class InspirationCommand extends Command {
|
||||
@@ -9,7 +10,7 @@ module.exports = class InspirationCommand extends Command {
|
||||
group: 'random-img',
|
||||
memberName: 'inspiration',
|
||||
description: 'Responds with a randomly generated inspiration.',
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
clientPermissions: [PermissionFlagsBits.AttachFiles],
|
||||
credit: [
|
||||
{
|
||||
name: 'InspiroBot',
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { PermissionFlagsBits } = require('discord.js');
|
||||
const request = require('node-superfetch');
|
||||
|
||||
module.exports = class LizardCommand extends Command {
|
||||
@@ -8,7 +9,7 @@ module.exports = class LizardCommand extends Command {
|
||||
group: 'random-img',
|
||||
memberName: 'lizard',
|
||||
description: 'Responds with a random lizard image.',
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
clientPermissions: [PermissionFlagsBits.AttachFiles],
|
||||
credit: [
|
||||
{
|
||||
name: 'nekos.life',
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { PermissionFlagsBits } = require('discord.js');
|
||||
const request = require('node-superfetch');
|
||||
|
||||
module.exports = class LoremPicsumCommand extends Command {
|
||||
@@ -9,7 +10,7 @@ module.exports = class LoremPicsumCommand extends Command {
|
||||
group: 'random-img',
|
||||
memberName: 'lorem-picsum',
|
||||
description: 'Responds with a random image of a certain size.',
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
clientPermissions: [PermissionFlagsBits.AttachFiles],
|
||||
credit: [
|
||||
{
|
||||
name: 'Lorem Picsum',
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { PermissionFlagsBits } = require('discord.js');
|
||||
const request = require('node-superfetch');
|
||||
|
||||
module.exports = class ShibaCommand extends Command {
|
||||
@@ -9,7 +10,7 @@ module.exports = class ShibaCommand extends Command {
|
||||
group: 'random-img',
|
||||
memberName: 'shiba',
|
||||
description: 'Responds with a random image of a Shiba Inu.',
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
clientPermissions: [PermissionFlagsBits.AttachFiles],
|
||||
credit: [
|
||||
{
|
||||
name: 'shibe.online',
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { PermissionFlagsBits } = require('discord.js');
|
||||
const sagiri = require('sagiri');
|
||||
const { SAUCENAO_KEY } = process.env;
|
||||
const sagiriClient = sagiri(SAUCENAO_KEY);
|
||||
@@ -15,7 +16,7 @@ module.exports = class XiaoCommand extends Command {
|
||||
group: 'random-img',
|
||||
memberName: 'xiao',
|
||||
description: 'Responds with a random image of Xiao Pai.',
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
clientPermissions: [PermissionFlagsBits.AttachFiles],
|
||||
credit: [
|
||||
{
|
||||
name: 'Marvelous',
|
||||
|
||||
Reference in New Issue
Block a user