feat: implement command registration for booster role bot and add tests
This commit is contained in:
+7
-1
@@ -1,10 +1,16 @@
|
||||
import { loadConfig } from "./config";
|
||||
import { createDiscordClient } from "./discord/client";
|
||||
import { registerGuildCommandsWithToken } from "./discord/registerCommands";
|
||||
|
||||
const config = loadConfig();
|
||||
await registerGuildCommandsWithToken(config.discordToken, {
|
||||
clientId: config.discordClientId,
|
||||
guildId: config.discordGuildId
|
||||
});
|
||||
|
||||
const client = createDiscordClient();
|
||||
|
||||
client.once("ready", () => {
|
||||
client.once("clientReady", () => {
|
||||
console.log(`Logged in as ${client.user?.tag ?? "unknown bot"}`);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user