aboutsummaryrefslogtreecommitdiff
path: root/src/logbag.rs
AgeCommit message (Collapse)Author
2021-03-06put matrix & discord functionality behind gatesDaniel Schadt
serenity and matrix-sdk pull in quite a lot of dependencies, which for a minimal use of ezau might not be wanted. Therefore, we now disable those parts by default, and the user has to opt-in into building ezau with Discord or Matrix functionality.
2021-03-06only compile LogBag::{new,categories} in testsDaniel Schadt
Those functions are not used anywhere else and just produce dead code warnings.
2021-03-06don't parse empty categoriesDaniel Schadt
2021-03-06rework discord text insertion logicDaniel Schadt
Equipped with the LogBag, we can now rework the "madness" that is the Discord `find_insertion` thing, even though it wasn't all too bad (and probably faster than the current version).
2021-03-06add proper previous-log parsing for matrixDaniel Schadt
Doing all the "new log" insertion based on simple string operations is a bit of madness, so the proper course of action is to parse them into a proper intermediate representation from which we can then generate a plain and HTML body. In addition, this has some other minor code cleanup for the matrix module.