bot stuff
All checks were successful
Deploy Backend / docker (ubuntu-latest) (push) Successful in 47s
All checks were successful
Deploy Backend / docker (ubuntu-latest) (push) Successful in 47s
This commit is contained in:
parent
2b9a777506
commit
da950e08f2
@ -30,9 +30,14 @@ client.once("ready", () => {
|
|||||||
export async function initDiscordBot() {
|
export async function initDiscordBot() {
|
||||||
console.log("Initializing discord bot...");
|
console.log("Initializing discord bot...");
|
||||||
|
|
||||||
|
// Setup slash commands
|
||||||
client.once("ready", async () => {
|
client.once("ready", async () => {
|
||||||
await client.initApplicationCommands();
|
await client.initApplicationCommands();
|
||||||
});
|
});
|
||||||
|
client.on("interactionCreate", interaction => {
|
||||||
|
client.executeInteraction(interaction);
|
||||||
|
});
|
||||||
|
|
||||||
await client.login(Config.discordBotToken!);
|
await client.login(Config.discordBotToken!);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user