GregSutcliffe / maubot-meetings

A Maubot plugin for running meetings in Matrix
Other
9 stars 5 forks source link

Fedora logs #3

Closed ryanlerch closed 1 year ago

ryanlerch commented 1 year ago

First, did a bit of restructuring so i could include some templates with the fedora backend.

Second, started the implementation of the fedora backend logs output -- only does the actual logs (not the minutes) but it formats the HTML similar.

still a lot to do on this:

i farted around with f-strings and stuff to do the output but finally decied to use jinja2 for templating -- took a bit to set up and getting the templates from the maubot plugin loader thing was a bit convoluted to work out, but it works now.

Resolves: #6 Resolves: #5

ryanlerch commented 1 year ago

worked a bit more on this today -- and added a new commit that adds a config option to allow the logging of ! commands to the meeting log as well as all messages from the bot itself.

i couldnt figure out how to configure the maubot @passive thing to work on messages from itself, so manually log these messages.

This PR is probably best reviewed on a commit by commit basis, as it is a bit all over the place

ryanlerch commented 1 year ago

the timestamp is now formatted

ryanlerch commented 1 year ago

added support for topics!

ryanlerch commented 1 year ago

just fixed the topics lines in the DB issue, and updated that commit.

merging now :)

GregSutcliffe commented 1 year ago

Thanks @ryanlerch, I'll get some PRs together for using some of that in the Ansible backend. In particular I think I can just drop the HTML into a Discourse post and it'll work :)