thesis / valkyrie

Valkyrie is our hubot. She guides your requirements to Valhalla, and shields the halls of Thesis.
https://valkyrie.thesis.co
Other
5 stars 5 forks source link

Channel Archiver #304

Closed zuuring closed 4 months ago

zuuring commented 7 months ago

Notes

This adds two new commands: /archive-channel and /unarchive-channel to be used for starting only in defense channels. This will move the channel into a new category "archived channels" and lock it into ViewMessages: true mode for the groups that have access to it already. The channel can be unarchived by running /unarchive-channel and that will then move the channel back to the defense category

Saving a transcript

In addition to moving/locking the channel to archived-channels, we also save a transcript of all the messages in the channel, outputted as a temp .txt file. File is deleted after being added to discord file-attachments.

Screenshot 2024-05-15 at 11 38 50

Future ideas

zuuring commented 6 months ago

@Shadowfiend This has got now the ability to move channel into an archive-channels category. Now we have to decide how we want to handle the usability of this to unarchive, since in-order to do that we need to store channel category history. Or alternatively, run via command /unarchive <category-name> specify where the unarchived channel should live in.

zuuring commented 6 months ago

@Shadowfiend Resurfacing this one since it seems like there is a need atm for saving a transcript easily of channels to be archived. We could alternatively also branch this transcript out into it's own command, something like /save-transcript.

zuuring commented 4 months ago

@Shadowfiend We should be good now! I added two new definitions for defense channel categories defenseCategoryName and defenseArchiveCategoryName we can change when needed. Now those commands are restricted to only run in those specific categories.