clragon / swan

bring elegance to your flutter discussions
https://discord.gg/rflutterdev
MIT License
3 stars 0 forks source link

anti-spam plugin #4

Closed clragon closed 9 months ago

clragon commented 10 months ago

since we are replacing flutterdocs functionality, its vital we also add an anti-spam plugin.

like flutterdoc, this includes:

the bot needs extra permissions for bans.

we can use a userid to message content hash map for this.

clragon commented 9 months ago

we should also totally have some sort of clean up for older messages because we dont want to hog 20 GB of memory. so if your message is older than. idk. an hour? it goes bye bye. if someone writes the same message an hour later I guess. maybe that doesnt matter. or maybe we use a full day. or. something like that. maybe we should check what flutterdoc does.