SocksTheWolf / AntiScamBot

A discord bot that shares commission scammer ban lists
https://scamguard.app/
MIT License
5 stars 3 forks source link

Auto-deactivate server if we lose ban permissions #21

Closed SocksTheWolf closed 9 months ago

SocksTheWolf commented 9 months ago

Our permission detection is very reliable, so we can just mark the server as deactivated if a ban doesn't go through for this reason.

SocksTheWolf commented 9 months ago

This might also be problematic in the case of unbans, as if we make a mistake, that one user may not get unbanned in a server.

Granted, ?scamcheck could be ran and would reveal that someone is not banned, thus resolving the mismatch. A new ticket should probably be opened, to handle this scenario.

SocksTheWolf commented 9 months ago

Closing this. Discord permission caching may break this code for up to 10 minutes after a bot was added (if it got other roles that denied it Ban functionality).

Instead we should add a command somehow that checks for ban permissions for the bot.