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
Can no longer view chat history
Sends chat history command as a message to the openAi meaning the user can no longer see their chat history
When a query is made to the openAi it is sent as a DM instead of being processed as a query for the openAi
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