From edc7c94c466c7fe919b5b0497008128c6f562083 Mon Sep 17 00:00:00 2001 From: skinmaker1345 Date: Tue, 5 Mar 2024 21:12:54 +0900 Subject: [PATCH] test: add debug log for djs --- utils/DiscordBot.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/DiscordBot.ts b/utils/DiscordBot.ts index 6ddef93079..6e51dc194f 100644 --- a/utils/DiscordBot.ts +++ b/utils/DiscordBot.ts @@ -49,6 +49,8 @@ DiscordBot.on('ready', async () => { DiscordBot.login(process.env.DISCORD_TOKEN ?? '') ServerListDiscordBot.login(process.env.DISCORD_SERVERLIST_TOKEN) +DiscordBot.on('debug', console.info) + export const getMainGuild = () => DiscordBot.guilds.cache.get(process.env.GUILD_ID ?? '') export const discordLog = async (