Skip to content

Commit 916cbca

Browse files
committed
refactor: Enhance logging in gatherChannelContext for better debugging
1 parent 3ce726b commit 916cbca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/events/ai/tools.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ export const gatherChannelContext = tool({
2222
}),
2323
execute: async ({ channelId, guildId, messageCount }) => {
2424
try {
25+
console.log(
26+
`Gathering AI context from channel ${channelId} in guild ${guildId}...`
27+
);
2528
const guild = await bot.guilds.fetch(guildId).catch(() => null);
2629
if (!guild) {
2730
return { success: false, error: "Guild not found" };

0 commit comments

Comments
 (0)