MozillaItalia / mozitahub_bot

Il bot di Mozilla Italia Hub.
Creative Commons Zero v1.0 Universal
5 stars 8 forks source link

Remove user from bot notification when they block it #70

Closed Mte90 closed 3 years ago

Mte90 commented 3 years ago

From the log:

Excep:08 -> ('Forbidden: bot was blocked by the user', 403, {'ok': False, 'error_code': 403, 'description': 'Forbidden: bot was blocked by the user'})
Sav22999 commented 3 years ago

Users are already removed from the list

Mte90 commented 3 years ago

Sorry the log wasn't cleaned and I didn't saw that.

Sav22999 commented 3 years ago

No problem. In the log is printed that string (because it's actually an exception!), but after the bot analyses that exception and, in case, it removes from the "Avvisi" and "All users" lists