Initial Emmelia merge
This commit is contained in:
18
Server/commands/exit.js
Normal file
18
Server/commands/exit.js
Normal file
@@ -0,0 +1,18 @@
|
||||
const libUtils = require("../libUtils.js");
|
||||
const discordAuth = require("../middleware/discordAuthorization");
|
||||
const { SlashCommandBuilder } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('exit')
|
||||
.setDescription('Exit the current application.'),
|
||||
example: "exit",
|
||||
isPrivileged: true,
|
||||
async execute(interaction) {
|
||||
// TODO - Need to add middleware for admins
|
||||
await interaction.reply(
|
||||
`Goodbye world - Disconnection imminent.`
|
||||
);
|
||||
libUtils.runAfter(process.exit, 5000);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user