Remove Bug command

This commit is contained in:
Christer Warén 2023-12-04 22:24:19 +02:00
parent c899266975
commit c0d0cf23dc
2 changed files with 1 additions and 36 deletions

View File

@ -1,6 +1,5 @@
import { Snowflake } from "discord.js"; import { Snowflake } from "discord.js";
import RadioClient from "../Client"; import RadioClient from "../Client";
import bug from "./commands/bug";
import help from "./commands/help"; import help from "./commands/help";
import invite from "./commands/invite"; import invite from "./commands/invite";
import list from "./commands/list"; import list from "./commands/list";
@ -21,7 +20,7 @@ export interface command {
} }
export default async function commands(client: RadioClient) { 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){ for(const command of commands){
client.commands.set(command.name, command); client.commands.set(command.name, command);

View File

@ -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
});
}
};