fac30sb / discord-chatbot-emma-egbie

0 stars 0 forks source link

command to see chat history/ask the openAi question is not working anymore #31

Closed blackNoir2 closed 8 months ago

blackNoir2 commented 9 months ago

The Discord bot stopped displaying chat history and sending queries to openAi after gaining the ability to listen to all prompts and check for violations. When the command to show chat history is issued or a request to query the openAi, it attempts to send it as a direct message (DM), causing the problem because the command structure for sending a message, asking questions and viewing history is the same. All these commands start with the same prefix. When issuing the command to request a user history, the bot mistakenly sends it to OpenAI instead which then responds with the following message:

Sorry, but as a bot, I don't have access to your chat history. Is there anything else I can assist you with?"

Problems

  1. Can no longer view chat history
  2. Sends chat history command as a message to the openAi meaning the user can no longer see their chat history
  3. When a query is made to the openAi it is sent as a DM instead of being processed as a query for the openAi