MooCowGalaxy / chatgpt-discord-bot

2 stars 1 forks source link

TypeError upon creating thread on Discord #2

Open tacomilkshake opened 1 year ago

tacomilkshake commented 1 year ago

Hello again! Still loving this bot. I tried to upgrade and failed so did a fresh install with the latest commit, but am getting this error upon creating a thread:


    at respond (/home/chatgpt/chatgpt-discord-bot/utils/respond.js:5:34)
    at Object.execute (/home/chatgpt/chatgpt-discord-bot/commands/create.js:86:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Client.<anonymous> (/home/chatgpt/chatgpt-discord-bot/index.js:69:9)
node:events:489
      throw er; // Unhandled 'error' event
      ^

Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
    at ChatInputCommandInteraction.reply (/home/chatgpt/chatgpt-discord-bot/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:102:46)
    at Client.<anonymous> (/home/chatgpt/chatgpt-discord-bot/index.js:72:27)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Emitted 'error' event on Client instance at:
    at emitUnhandledRejectionOrErr (node:events:394:10)
    at process.processTicksAndRejections (node:internal/process/task_queues:84:21) {
  code: 'InteractionAlreadyReplied'
}```
MooCowGalaxy commented 1 year ago

What arguments did you use for /create? I’ll try to reproduce this on my end.

tacomilkshake commented 1 year ago

/create text What's the longest day of the year?

I should note I'm using the existing keys and Discord bot, and there is an initialPrompt set as well: 'You are a helpful and kind assistant.'