SocksTheWolf / AntiScamBot

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

Combine PrepareBan/Unban into a shared function #35

Closed SocksTheWolf closed 1 month ago

SocksTheWolf commented 9 months ago

Goal: right now these functions seem to share similar code with the only difference being the flag of the async operation and some naming and returns.

Create a new function that handles a ban/unban based on a single bool flag, to help lower potential code duplication.