2022-06-20 11:42:20 +02:00
|
|
|
import { SlashCommandBuilder } from '@discordjs/builders';
|
|
|
|
import process from 'node:process';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
data: new SlashCommandBuilder()
|
|
|
|
.setName('die')
|
|
|
|
.setDescription('Kill the bot'),
|
2022-08-17 16:21:58 +02:00
|
|
|
ownerOnly: true,
|
2022-06-20 11:42:20 +02:00
|
|
|
async execute(interaction) {
|
|
|
|
console.log('\x1b[31m\x1b[47m\x1b[5mSHUTING DOWN!!!!!\x1b[0m');
|
|
|
|
await interaction.reply({ content: 'Good bye', ephemeral: true })
|
|
|
|
.then(() => {
|
|
|
|
console.log('\x1b[31m\x1b[47m\x1b[5mSHUTING DOWN!!!!!\x1b[0m');
|
|
|
|
process.exit(1);
|
|
|
|
});
|
|
|
|
},
|
|
|
|
};
|