diff --git a/config.example.json b/config.example.json index c56b7a8..39501b9 100644 --- a/config.example.json +++ b/config.example.json @@ -1,7 +1,7 @@ { "groq-key": "", "discord-key": "", - "chat-channelID": "", + "chat-channelID": [""], "should-send-debug": false, "debug-channelID": "" } \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index 30122bf..581cd8f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -60,7 +60,7 @@ client.on(Events.MessageCreate, (message: Message) => { } } - if (message.channel.id !== conf['chat-channelID']) return + if (!conf['chat-channelID'].includes(message.channel.id)) return (async function () { let imageexplain: string | boolean = ""; @@ -78,8 +78,6 @@ client.on(Events.MessageCreate, (message: Message) => { } } - // Log the result after the asynchronous operations are complete - console.log(imageexplain); messages.push({ "role": "user", "name": message.author.username,