-
Notifications
You must be signed in to change notification settings - Fork 20
feature request: bot message limit warning message #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you tell me how you guy implement message limit. |
We implemented it using simple dict as it resets every 3 hours,it triggers the condition just doesn't send the message. |
the required flow is:. after 10 messages are sent by the ai/bot at present it doesnt send the message and it works after set time limit (3 hours in our case) is over. |
I recommend creating a breakpoint here and then step into to see what happen in details. Besides, i guess this function will only execute once. To make thing easier, you can use apschuduler library: https://apscheduler.readthedocs.io/en/3.x/ |
will try this. thanks |
took all week to solve this. but your suggestion helped 🔥 thanks. |
Hi, we have used this matrix bot in a chat application. Where, users can use publicly available ai bot for upto 10 messages and post this, it will send a message to user about "10 message limit reached, resume in 1 hour or add your own API key"
We tried to implement this but ran into issues where the bot stopped responding after message limit is reached.
More context of our implementation: User can add own API key by using a !key command. but in our implementation, after the 10 message warning the bot stops to respond.
Any ideas how we could implement this?
thanks !
The text was updated successfully, but these errors were encountered: