Skip to content

Conversation

rogerjbos
Copy link

I was getting a bunch of The application did not respond messages in Discord. For example /ask what is rig? would give me that error, but /ask what is rig in just a few words? would work properly.

Turns out Discord has a rule that it only waits 3 seconds for a response, so if your LLM takes too long to respond, you will get that message. Also, Discord limits each message to 2000 characters (unless you have Nitro--then you get 4000). I modified process_messages to add a deferral response and truncate any message over 1900 characters.

I also updated the code to work with [email protected] whereas the original code used 0.2.1. I am new to rig so these updates may not be optimal, but the code compiles and works. Unfortunately the changes do make the code more difficult to understand.

…te Discord's 3 second response rule and 2000 character limit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant