transprogrammer / rodhaj

A improved, modern version of ModMail for the transprogrammer community
https://rodhaj.readthedocs.io
Apache License 2.0
4 stars 1 forks source link

Setup process #11

Closed No767 closed 11 months ago

No767 commented 1 year ago

The setup process may be influenced from modmail, but it is different. The process can be envisioned as such:

  1. Check for the relevant permissions before running the command (and all the other checks)
  2. The bot will create a forum (probably called "modmail"), and create the nessacry overwrites for that forum. Now the bot creates another dedicated text channel, and this will be the logging channel.
  3. Store the ID of the logging channel and forum channel (this will probably be cached and used in checks) for future use
No767 commented 11 months ago

Ideally as modmail sets up a logging channel to log for different events, the idea now is when there is a new ticket, the logging system will dispatch the event, and assign a randomly active moderator to help deal with the thread. The idea is the same as the modping command found in discord.bots.gg's bot.

Now on creating the mod logging channel and webhook management? Well I kinda already did the hard work already: https://github.com/No767/Kumiko/blob/dev/Bot/Cogs/config.py#L139-L213 . All we really need to do is to take that code, edit parts out (I'll more than likely deal with that part), and go from there. And just need to figure out how to store the fourm channels and setting that up

No767 commented 11 months ago

This is finished in https://github.com/transprogrammer/rodhaj/commit/b9340cf10783c55bc607021117a57afdd0c6a73d