Discord-Bot/src/interactions/Command/images.js
2022-12-09 19:54:59 +01:00

285 lines
No EOL
13 KiB
JavaScript

const { CommandInteraction, Client } = require('discord.js');
const { SlashCommandBuilder } = require('discord.js');
const { ChannelType } = require('discord.js/v9');
module.exports = {
// Meme Images
data: new SlashCommandBuilder()
.setName('images')
.setDescription('See all the images in Bot')
.addSubcommand(subcommand =>
subcommand
.setName('help')
.setDescription('Get information about the message category commands')
)
.addSubcommandGroup((group) =>
group
.setName('memes')
.setDescription('See all the memes in Bot')
.addSubcommand((subcommand) =>
subcommand.setName('clyde').setDescription('Get a custom clyde message')
.addStringOption(option => option.setName('text').setDescription('Enter a text').setRequired(true))
)
.addSubcommand((subcommand) =>
subcommand.setName('drake').setDescription('Create a drake meme')
.addStringOption(option => option.setName('text1').setDescription('Enter a text').setRequired(true))
.addStringOption(option => option.setName('text2').setDescription('Enter a text').setRequired(true)),
)
.addSubcommand((subcommand) =>
subcommand.setName('meme').setDescription('Get a random meme'),
)
.addSubcommand((subcommand) =>
subcommand.setName('pooh').setDescription('Create a pooh meme')
.addStringOption(option => option.setName('text1').setDescription('Enter a text').setRequired(true))
.addStringOption(option => option.setName('text2').setDescription('Enter a text').setRequired(true)),
)
.addSubcommand((subcommand) =>
subcommand.setName('trumptweet').setDescription('Display\'s a custom tweet from Donald Trump with the message provided')
.addStringOption(option => option.setName('text').setDescription('Enter a text').setRequired(true))
)
.addSubcommand((subcommand) =>
subcommand.setName('tweet').setDescription('Tweet something on twitter')
.addStringOption(option => option.setName('text').setDescription('Enter a text').setRequired(true))
)
.addSubcommand((subcommand) =>
subcommand.setName('wasted').setDescription('GTA wasted overlay'),
)
)
// Animal Images
.addSubcommandGroup((group) =>
group
.setName('animals')
.setDescription('See all the animal images in Bot')
.addSubcommand((subcommand) =>
subcommand
.setName('bird')
.setDescription('Get a random bird'),
)
.addSubcommand((subcommand) =>
subcommand
.setName('cat')
.setDescription("Get a random cat")
)
.addSubcommand((subcommand) =>
subcommand
.setName('dog')
.setDescription("Get a random dog")
)
.addSubcommand((subcommand) =>
subcommand
.setName('fox')
.setDescription("Get a random fox")
)
.addSubcommand((subcommand) =>
subcommand
.setName('koala')
.setDescription("Get a random koala")
)
.addSubcommand((subcommand) =>
subcommand
.setName('panda')
.setDescription("Get a random panda")
)
.addSubcommand((subcommand) =>
subcommand
.setName('redpanda')
.setDescription("Get a random redpanda")
)
)
// User Images
.addSubcommandGroup((group) =>
group
.setName('user')
.setDescription('See all the user images in Bot')
.addSubcommand((subcommand) =>
subcommand
.setName('ad')
.setDescription('Generate a ad image')
.addUserOption((option) =>
option.setName('user').setDescription('The user you want the ad from').setRequired(true),
)
)
.addSubcommand((subcommand) =>
subcommand
.setName('avatar')
.setDescription('See a users avatar')
.addUserOption((option) =>
option.setName('user').setDescription('The user you want the avatar from').setRequired(true),
)
)
.addSubcommand((subcommand) =>
subcommand
.setName('banner')
.setDescription('See a users banner')
.addUserOption((option) =>
option.setName('user').setDescription('The user you want the banner from').setRequired(true),
)
)
.addSubcommand((subcommand) =>
subcommand
.setName('bed')
.setDescription('Creates an bed meme')
.addUserOption((option) =>
option.setName('user').setDescription('The user you want to sleep with').setRequired(true),
)
)
.addSubcommand((subcommand) =>
subcommand
.setName('blur')
.setDescription('Gives an blurred image')
.addUserOption((option) =>
option.setName('user').setDescription('The user you want the blurred image from').setRequired(true),
)
)
.addSubcommand((subcommand) =>
subcommand
.setName('burn')
.setDescription('Gives an burned image')
.addUserOption((option) =>
option.setName('user').setDescription('The user you want the burned image from').setRequired(true),
)
)
.addSubcommand((subcommand) =>
subcommand
.setName('clown')
.setDescription('Generate a clown image')
.addUserOption((option) =>
option.setName('user').setDescription('The user you want make a clown').setRequired(true),
)
)
.addSubcommand((subcommand) =>
subcommand
.setName('colorify')
.setDescription('Generate a colorify image')
.addUserOption((option) =>
option.setName('user').setDescription('The user you want the colorified image from').setRequired(true),
)
)
.addSubcommand((subcommand) =>
subcommand
.setName('darkness')
.setDescription('Gives an darkness image')
.addUserOption((option) =>
option.setName('user').setDescription('The user you want the darkness image from').setRequired(true),
)
)
.addSubcommand((subcommand) =>
subcommand
.setName('facepalm')
.setDescription('Generate an facepalm image')
.addUserOption((option) =>
option.setName('user').setDescription('The user you want the facepalm image from').setRequired(true),
)
)
.addSubcommand((subcommand) =>
subcommand
.setName('greyscale')
.setDescription('Make an image more grey')
.addUserOption((option) =>
option.setName('user').setDescription('The user you want to make more gray').setRequired(true),
)
)
.addSubcommand((subcommand) =>
subcommand
.setName('invert')
.setDescription('Invert a image')
.addUserOption((option) =>
option.setName('user').setDescription('The user you want the inverted image from').setRequired(true),
)
)
.addSubcommand((subcommand) =>
subcommand
.setName('kiss')
.setDescription('Kiss a user')
.addUserOption((option) =>
option.setName('user').setDescription('The user you want to kiss').setRequired(true),
)
)
.addSubcommand((subcommand) =>
subcommand
.setName('podium')
.setDescription('Make a user podium')
.addUserOption((option) =>
option.setName('user1').setDescription('The first podium user').setRequired(true),
)
.addUserOption((option) =>
option.setName('user2').setDescription('The second podium user').setRequired(true),
)
.addUserOption((option) =>
option.setName('user3').setDescription('The third podium user').setRequired(true),
)
)
.addSubcommand((subcommand) =>
subcommand
.setName('spank')
.setDescription('Spank a user')
.addUserOption((option) =>
option.setName('user').setDescription('The user you want to spank').setRequired(true),
)
)
.addSubcommand((subcommand) =>
subcommand
.setName('wanted')
.setDescription('Wanted a user')
.addUserOption((option) =>
option.setName('user').setDescription('The user you want to wanted').setRequired(true),
)
)
)
// Extra Images
.addSubcommandGroup((group) =>
group
.setName('extra')
.setDescription('See all the extra images in Bot')
.addSubcommand((subcommand) =>
subcommand
.setName('car')
.setDescription('Get a random car'),
)
.addSubcommand((subcommand) =>
subcommand
.setName('glass')
.setDescription('Overlays a glass texture over an image'),
)
.addSubcommand((subcommand) =>
subcommand.setName('image').setDescription('Show a image in an embed')
.addChannelOption(option => option.setName('channel').setDescription('Channel where the embed should be').setRequired(true).addChannelType(ChannelType.GuildText))
.addStringOption(option => option.setName('image-url').setDescription('Enter a image url').setRequired(true))
)
.addSubcommand((subcommand) =>
subcommand
.setName('triggered')
.setDescription('Trigger yourself'),
)
.addSubcommand((subcommand) =>
subcommand.setName('wallpaper').setDescription('Returns a wallpaper from HDQWalls')
.addStringOption(option => option.setName('name').setDescription('Enter a name').setRequired(true))
)
),
/**
* @param {Client} client
* @param {CommandInteraction} interaction
* @param {String[]} args
*/
run: async (client, interaction, args) => {
client.loadSubcommands(client, interaction, args);
},
};