GroupButler
GroupButler copied to clipboard
WIP: Included Blacklist option
I have manually included changes which I have already done on my own Clone running personally. No translations included. I didnt log the delete action, as I am using the telegram feature of recent actions to identify at present. Also the blacklist is not checked in Antispam, it is direct option for every message.
Share your comments, so that I can improve the code if required.
Awesome! Thanks for your work. Since this is not shipping quality yet as you noted, I will mark this as WIP.
@reyasmohammed looks good so far.
I'm just not sure how the bot should behave if a blacklisted link is posted - brutally deleting it is cool but there should be some sort of "punishment" similar to how the antispam handles repeated spam messages (ban/kick/restrict the user).
Maybe blacklisted links should be deleted & the user punished only when the antispam is off, but the bot will act as if it was on
Eg: *a link is posted* If the antispam is on: check if the link is whitelisted. If yes, ignore; if not, delete/warn/punish. If the antispam is off: check if the link is blacklisted. If yes, delete/warn/punish; if not, ignore
I think this would be the most logical solution
I have initially written like that, then I have changed as per requirement from the Group which I had this clone running. I have the code with me, will include once I am back from my trip.