Initial Emmelia merge

This commit is contained in:
Logan Cusano
2023-05-06 14:56:51 -04:00
parent 6e8af5dbcc
commit f3a4f25f85
44 changed files with 5530 additions and 1115 deletions

18
Server/commands/exit.js Normal file
View 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);
}
};