From c0d0cf23dc665bd1a16da2c70546b7b60428448b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Mon, 4 Dec 2023 22:24:19 +0200 Subject: [PATCH] Remove Bug command --- src/client/commands.ts | 3 +-- src/client/commands/bug.ts | 34 ---------------------------------- 2 files changed, 1 insertion(+), 36 deletions(-) delete mode 100644 src/client/commands/bug.ts diff --git a/src/client/commands.ts b/src/client/commands.ts index 56814a3..5320d6d 100644 --- a/src/client/commands.ts +++ b/src/client/commands.ts @@ -1,6 +1,5 @@ import { Snowflake } from "discord.js"; import RadioClient from "../Client"; -import bug from "./commands/bug"; import help from "./commands/help"; import invite from "./commands/invite"; import list from "./commands/list"; @@ -21,7 +20,7 @@ export interface command { } export default async function commands(client: RadioClient) { - const commands : command[] = [ bug, help, invite, list, maintenance, next, play, prev, statistics, status, stop ]; + const commands : command[] = [ help, invite, list, maintenance, next, play, prev, statistics, status, stop ]; for(const command of commands){ client.commands.set(command.name, command); diff --git a/src/client/commands/bug.ts b/src/client/commands/bug.ts deleted file mode 100644 index 5fb9e57..0000000 --- a/src/client/commands/bug.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { ChatInputCommandInteraction, EmbedBuilder } from "discord.js"; -import RadioClient from "../../Client"; - -export default { - name: 'bug', - description: 'Report a bug', - category: 'info', - async execute(interaction: ChatInputCommandInteraction, client: RadioClient) { - if(!client.user) return interaction.reply({ - content: client.messages.emojis["error"] + client.messages.maintenance, - ephemeral: true - }); - - const embed = new EmbedBuilder() - .setTitle(client.messages.replace(client.messages.bugTitle, { - "%client.user.username%": client.user.username - })) - .setThumbnail("https://cdn.discordapp.com/emojis/" + client.messages.emojis["logo"].replace(/[^0-9]+/g, '')) - .setColor(client.config.embedColor) - .setDescription(client.messages.replace(client.messages.bugDescription, { - "%client.config.supportGuild%": client.config.supportGuild - })) - .setImage('https://waren.io/berriabot-temp-sa7a36a9xm6837br/images/empty-3.png') - .setFooter({ - text: client.messages.footerText, - iconURL: "https://cdn.discordapp.com/emojis/" + client.messages.emojis["eximiabots"].replace(/[^0-9]+/g, '') - }); - - interaction.reply({ - embeds: [embed], - ephemeral: true - }); - } -};