discordextremelist / bot

The official source code for the bot found in the Discord Extreme List Discord server!
https://discord.gg/WeCer3J
GNU Affero General Public License v3.0
19 stars 7 forks source link

added automod #47

Closed TheMoksej closed 3 years ago

TheMoksej commented 3 years ago

Currently this has anti invite and anti spam. I don't know what you want me to add next to that.

I've tested multiple times, it is working, so if it breaks, blame yourself not me, I repeat - blame yourself.

TheMoksej commented 3 years ago

I've also added status.py file, so you wouldn't need to make one yourself haha

TheMoksej commented 3 years ago

Oh and yes, this doesn't have the check to see if member is trying to evade the mute be rejoining the server, but that's fairly simple to add, however, you'll need to use cache for that. If anything is missing from automod side, just lmk and I'll add that in, although I don't think we talked about anything else. Have fun.

~ Mok

TheMoksej commented 3 years ago

I forgot to add whitelisted invites into the list, please give me a day or two so I could fix that issue. I'll draft this pr whilst adding whitelisted invites feature (I'll try to not hardcode them)

TheMoksej commented 3 years ago

Alright, should be good to go. I've tested once again, it does work, however if user spams the whitelisted invites with random invites, it might take a few seconds to delete because of the loops, but that shouldn't be problem because: 1) there's anti spam 2) They can send a maximum of 5 invites in 60 seconds, so they shouldn't be able to spam too much

TheMoksej commented 3 years ago

Marking this as draft until I re-do everything.

carolinaisslaying commented 3 years ago

Marking this as draft until I re-do everything.

tell me when you finish on this and i'll implement etc

TheMoksej commented 3 years ago

Same with this one. Will be introducing this in the rewrite.