Twentysix26 / x26-Cogs

General purpose cogs for Red V3
GNU General Public License v3.0
41 stars 28 forks source link

Warden and discord.py's discord.PublicUserFlags.spammer attribute #90

Open bctrainers opened 4 months ago

bctrainers commented 4 months ago

Greetings, I've recently begun my journey into setting up the Warden module on a server I moderate. Creating filters/rules via the Defender/Warden cog is honestly amazing and has been fairly straight forward. Unfortunately, the server is continually plagued with spammers and scammers due to the nature of the discord server type (equities trading Discord server). Such drone/spam accounts join the server, begin spamming users in DM's and post their junk content into various channels visible. At that point, Discord's anti-spam detection activates and flags the account for spam.

Does Warden have the capability to see and utilize the discord.PublicUserFlags.spammer attribute presented from discord.py? If so, how would I go about implementing such? I would greatly appreciate it to see the syntax utilized within a demonstrative ruleset.

I would assume that periodicallowed would need to be utilized/enabled for such a rule.

https://discordpy.readthedocs.io/en/stable/api.html?highlight=spam#publicuserflags https://discordpy.readthedocs.io/en/stable/api.html?highlight=spam#discord.PublicUserFlags.spammer

I apologize if this is the wrong place to ask such questions, I didn't see another method available to ask.