2022-05-13 10:47:40 +01:00
|
|
|
const { Client, CommandInteraction } = require("discord.js");
|
2022-06-27 11:21:13 +01:00
|
|
|
const { SlashCommandBuilder } = require('@discordjs/builders');
|
2022-05-13 10:47:40 +01:00
|
|
|
|
|
|
|
module.exports = {
|
2022-06-27 11:21:13 +01:00
|
|
|
...new SlashCommandBuilder()
|
|
|
|
.setName('gorb')
|
|
|
|
.setDescription('Gorb')
|
|
|
|
.addStringOption(option =>
|
|
|
|
option
|
|
|
|
.setName('type')
|
|
|
|
.setDescription('The gorb type')
|
|
|
|
.addChoices(
|
|
|
|
{ name: 'Christmas', value: 'christmas' },
|
|
|
|
{ name: 'Party', value: 'party' },
|
|
|
|
{ name: 'Computer Science', value: 'cs' },
|
|
|
|
{ name: 'Large', value: 'large' },
|
|
|
|
{ name: 'Storm', value: 'storm' },
|
|
|
|
)),
|
|
|
|
|
2022-05-13 10:47:40 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param {Client} client
|
|
|
|
* @param {CommandInteraction} interaction
|
|
|
|
* @param {String[]} args
|
|
|
|
*/
|
|
|
|
run: async (client, interaction, args) => {
|
2022-06-27 11:21:13 +01:00
|
|
|
const string = interaction.options.getString('type');
|
|
|
|
|
|
|
|
if(string == null){
|
2022-06-27 15:15:25 +01:00
|
|
|
await interaction.reply({ files: ['./images/gorb.jpg'] })
|
2022-06-27 11:21:13 +01:00
|
|
|
}
|
2022-06-27 15:15:25 +01:00
|
|
|
|
|
|
|
if(string == 'cs'){
|
|
|
|
await interaction.reply({ files: ['./images/gorbcs.jpg'] })
|
2022-06-27 11:21:13 +01:00
|
|
|
}
|
|
|
|
|
2022-06-27 15:15:25 +01:00
|
|
|
if(string == 'party'){
|
2022-07-04 18:51:46 +01:00
|
|
|
await interaction.reply({ files: ['./images/gorbcelebration.PNG'] })
|
2022-06-27 11:21:13 +01:00
|
|
|
}
|
|
|
|
|
2022-06-27 15:15:25 +01:00
|
|
|
if(string == 'christmas'){
|
2022-07-04 18:51:46 +01:00
|
|
|
await interaction.reply({ files: ['./images/gorbchristmas.PNG'] })
|
2022-06-27 11:21:13 +01:00
|
|
|
}
|
2022-06-27 15:15:25 +01:00
|
|
|
|
|
|
|
if(string == 'storm'){
|
2022-07-04 18:51:46 +01:00
|
|
|
await interaction.reply({ files: ['./images/gorbstorm.PNG'] })
|
2022-06-27 11:21:13 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
if(string == 'large'){
|
2022-06-27 15:15:25 +01:00
|
|
|
await interaction.reply({ files: ['./images/gorblarge.png'] })
|
2022-06-27 11:21:13 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-13 10:47:40 +01:00
|
|
|
},
|
|
|
|
};
|