-
Notifications
You must be signed in to change notification settings - Fork 114
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
feat: increment fails on webhook 404 #851
Conversation
If this column (which is unused as now) is to be used, surely it should also increment on bot failures (eg user permission problems) ? |
Wasn't use case handled the other way? I believe they are getting locked after abuse. But sure, I'll take a look later. Yeah... couldn't think about a better solution in this codebase. I was 98% sure you will mention it ,) |
I think that exception is the right place, have you seen this work? |
Working for those. |
I imagine it would work. It is easily testable by setting DMs to friends only then they will fail for a user |
...this would be a great addition to !userlist as well to show fail numbers (although without it resetting it would only be an indicator of a past problem I guess) |
Tested last case on myself. I intended to keep it for backend cleanup, cases when you see a lot of errors in log and don't want to dig manually. I could add it in |
These can be in a future PR. Would be easy to add a last_fail_date, or zero at midnight or something to make it more relevant but for now it's a good indicator at least. |
:) It's ready to go then |
ca89749
to
d892547
Compare
:poke: @jfberry |
Description
Make use of
human.fails
and increment a value upon webhook 404.Motivation and Context
Easier to remove deleted channels but staled webhooks
How Has This Been Tested?
Production.
Types of changes
Checklist: