jjj333-p / dendrite-admin-interface

[Early Developmentt] A bot interface for administrating a Dendrite server using the administration api and some database interfacing
https://matrix.to/#/#admin-interface-support:pain.agency
GNU Affero General Public License v3.0
6 stars 0 forks source link

regex based user deletion #9

Closed jjj333-p closed 9 months ago

jjj333-p commented 9 months ago

moving here for better organization

from @timaeos

As mentioned in the #dendrite:matrix.org room:

Having a regular expression format that allows for mass user deletion / purging would be useful for managing spam account abuse. I would preferably want there to be a confirmation step that shows example accounts (<20) that are going to be purged or deleted prior to performing the purge because malformed RegEx mishaps are bound to happen.

Similarly, mass evacuations of rooms would be helpful for moderation.

from me:

oh hm i never would have thought about that. i kinda like that idea since many spambot scripts will do @spambot_[randomstring]:server.tld which could be reasonably picked up by regex.

as for mass evacuations, assuming you dont mean evacuating multiple rooms at once that is already a natively supported admin endpoint and of course this will have it

jjj333-p commented 9 months ago

user deletion script https://gist.github.com/TruncatedDinoSour/b3646071cc404a8ba8201f4950bfc031

TruncatedDinoSour commented 9 months ago

user deletion script https://gist.github.com/TruncatedDinoSour/b3646071cc404a8ba8201f4950bfc031

https://github.com/jjj333-p/dendrite-admin-interface/issues/3#issuecomment-1871846585

jjj333-p commented 9 months ago

duplicate of #3 because im dumb