bot stuff
All checks were successful
Deploy Backend / docker (ubuntu-latest) (push) Successful in 47s

This commit is contained in:
Lee 2024-10-25 18:00:15 +01:00
parent 2b9a777506
commit da950e08f2

@ -30,9 +30,14 @@ client.once("ready", () => {
export async function initDiscordBot() {
console.log("Initializing discord bot...");
// Setup slash commands
client.once("ready", async () => {
await client.initApplicationCommands();
});
client.on("interactionCreate", interaction => {
client.executeInteraction(interaction);
});
await client.login(Config.discordBotToken!);
}