the-draupnir-project / Draupnir

A Matrix moderation bot
https://the-draupnir-project.github.io/draupnir-documentation/
78 stars 14 forks source link

Quick Actions for Command Handler #330

Open FSG-Cat opened 5 months ago

FSG-Cat commented 5 months ago

The current flow to more easily ban a user is to type !draupnir ban USER and have the bot present you with the following choices in the following order. What list to write to and what reason. This requires you to click thru multiple prompt and wait for multiple rounds of reactions to be delivered to you and the delays involved.

This feature is indended to allow you to configure ahead of time so called Quick Actions. Where you have a list of pre configured list and reason pairs that are configured ahead of time in a to be determined flow that are offered to you before you get asked about what list and what reason to use.

Some policy lists like for example CME main are Mono reason users due to the spam keyword being auto redact in legacy mjolnir and draupnir (But we can in the future add workarounds to this problem but it wouldnt fix legacy problems). So for a list like CME a quick action that says CME and spam as reason would be a single click. This is especially helpful as on desktop you can just type the whole thing but on Mobile its much easier to use the command handler.

And with Draupnir MPS not wanting to keep shortcodes around unless we absolutely have to this is a compromise that gives the speed of shortcodes for bans that you have pre configured.

This attached image is and example of how this UX could look in Draupnir. image

Ofc this is without the reactions but still shows an example.

Gnuxie commented 5 months ago

So the issue is not asking for any more than preconfigured "list-reason" pairs?

FSG-Cat commented 5 months ago

Yes the issue is essentially just in fancier words describing what is showed in the image. A list of as you say "list-reason" pairings. The image attached shows one. List is CME and reason is spam now ofc its a bit confusing that it includes a short code. This is based on a pre Shortcode removal command handler output.

Edit: The reason i didnt include more examples is because i didnt at the time think of any other sufficient noteriety policy lists that are a real use as the mockup i wanted was supposed to be 100% possible. (CME and m.org COC are the 2 lists i know of sufficient noteriety as to not be affected by being mentioned here only problem is nobody has access to both as m.org does not have CME access nor runs Draupnir for now)