aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-09-18fix fractal numbersHEADmasterDaniel Schadt
99 CM est mort, vive 99 CM ! In my heart, SO/Nightmare will always be 100/99 CM.
2024-08-30Merge branch 'adjust-upload-timeout' into 'master'Daniel
fix: increase upload timeout to match dps.report internal timeout See merge request dunj3/ezau!4
2024-08-30fix: increase upload timeout to match dps.report internal timeoutnetworkjanitor
2024-08-28add setting for log sortingDaniel Schadt
2024-08-28implement sorting of logsDaniel Schadt
(not available as a setting yet)
2024-08-28remove zip functionalityDaniel Schadt
2024-08-03Merge branch 'enable-dps-report-url-configuration' into 'master'Daniel
feat: add dps.report upload url configuration See merge request dunj3/ezau!3
2024-07-30feat: add dps.report upload url configurationnetworkjanitor
2024-07-19Merge branch 'update-matrix-sdk-integration' into 'master'Daniel
feat: matrix e2e messaging See merge request dunj3/ezau!2
2024-07-18wip: update Cargo.lock dependencies, docnetworkjanitor
2024-07-18wip: redacted messages not handled yetnetworkjanitor
2024-07-18wip: defect e2e find_messagesnetworkjanitor
2022-04-02update dependenciesDaniel Schadt
This also removes the direct import of ruma and instead imports matrix_sdk::ruma. This is simply to avoid mismatched versions, otherwise there might be errors popping up about missing traits.
2022-03-10update for End of DragonsDaniel Schadt
2022-01-24Merge branch 'networkjanitor/ezau-multiple-matrix-channels'Daniel Schadt
2022-01-24cargo fmtDaniel Schadt
2022-01-24fix: &room_id -> room_id in matrix room loopsXyoz Netsphere
2022-01-24feat(im-matrix): added multi-room supportXyoz Netsphere
2021-11-25more categories: WvW and Twisted CastleDaniel Schadt
2021-11-20update dependenciesDaniel Schadt
This also comes with an update to evtclib 0.6.0, therefore we get access to some new boss enums.
2021-10-07Update dependenciesDaniel Schadt
The biggest adaption was the update to matrix-sdk 0.4, as some types got shuffled around and the API is now imported from ruma. The relates_to.is_none() check seems to no longer work, as Relation::_Custom is used instead, so instead we now explicitely check if the message is neither a reply nor a replacement (on a related note, it is unknown to me whether we need to find the first original message or if we could also set a replaces on the last message in the chain). serenity, tokio and reqwest needed no API updates on the other hand.
2021-03-08matrix: try better to find the last messageDaniel Schadt
In matrix, every edit count is also sent as a room message, so are joins, leaves, ... which makes 10 (the default) a pretty low number of previous messages to check for. In comparison, the discord integration checks the last 25 messages to find the correct one. This patch increases the limit to 60 messages, loaded in 3 chunks a 20 messages each. This should ensure that even for more edited channels, the message is found in more cases.
2021-03-06warn when logs are unnecessarily being uploadedDaniel Schadt
2021-03-06update READMEDaniel Schadt
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-06remove patched olm dependencyDaniel Schadt
This was accidentally commited earlier.
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.
2021-03-06add some basic tests to matrix moduleDaniel Schadt
2021-03-06initial support for matrix log postingDaniel Schadt
Similar to Discord posting, this now allows ezau to post a message to the given Matrix room for every log. The text handling is still pretty bad and should be reworked, but so should the Discord one. This is just the initial support, now that the actual posting works we can add some tests and proper text parsing, together with unifying some of the logic between Discord and Matrix. Note that this currently only works for unencrypted rooms!
2021-01-11remove patched typemap_revDaniel Schadt
The functionality has been merged upstream and the repository has been deleted, so we no longer need (or should have) this patch here.
2020-11-13update dependenciesDaniel Schadt
This is a bit bigger than usual, because it brings the serenity update from 0.8.x to 0.9 with a lot of API changes. The biggest offender is the new async environment, which means that we need to sprinkle some .awaits here and there, as well as use tokio to spawn a runtime. Serenity currently uses tokio 0.2, so we need to stick to the older version until serenity updates, otherwise we'll get a runtime mismatch. Another small change comes from serenity switching to typemap_rev[1] instead of their old implementation, which is currently still missing some methods. Until those are implemented[2], we're patching the dependency directly. The good news is that all of the changes are pretty much contained to src/discord.rs only, as the other parts of ezau could stay untouched. [1]: https://github.com/bdashore3/typemap_rev [2]: https://github.com/bdashore3/typemap_rev/pull/1
2020-10-07use evtclib 0.5.0Daniel Schadt
2020-10-04update to latest evtclibDaniel Schadt
There's a good chance that this version of evtclib will stay as 0.5, so it's a good idea to adapt our code to the API changes (mainly using evtclib::Encounter instead of evtclib::Boss).
2020-09-23implement categorization for Sunqua PeakDaniel Schadt
2020-09-21revert hacky Skorvald filter by updating evtclibDaniel Schadt
The CM detection in evtclib has been fixed in 0.4.3 so we can now rely on that again.
2020-09-17adjust ezau for latest fractal changesDaniel Schadt
100/99 have been moved to 99/98. Due to broken CM detection on Skorvald, the check has been hacked together for now until a proper CM detection is working again.
2020-08-17update dependenciesDaniel Schadt
2020-08-17add a minimum_duration settingDaniel Schadt
2020-07-24use Analyzer::outcome for Discord checkmarksDaniel Schadt
This is way more accurate than Log::was_rewarded, especially for repeated kills in a week.
2020-07-24update dependencies (evtclib 0.4.0)Daniel Schadt
2020-07-20allow zipping to be disabledDaniel Schadt
If you use ezau on Windows, you might prefer to use the built-in zipping functionality from arcDPS instead of relying on ezau to do this job. However, that would lead to weird interactions because arcDPS would still create the temporary file in the watched folder, and powershell would race with ezau to zip and delete this temporary file. To prevent this from breaking existing (& working) configurations - and to stick true to the name - zipping is enabled by default if not given otherwise in the configuration.
2020-07-17turn HTTP status code to errorDaniel Schadt
If we don't do this, we end up trying to decode the error page as the expected JSON response, which usually ends up with a "missing permalink" field, which doesn't tell us a lot. This way, we get a proper 404/500 error.
2020-07-17update dependenciesDaniel Schadt
2020-07-17retry uploadingDaniel Schadt
As it turns out, uploading is often the reason why the process crashes/exits. This is bad because it means that 1) we lose links to logs (as they are not being uploaded), leading to incomplete reporting and 2) we rely on an external watchdog to keep the service alive (and I'd rather just not have ezau crashing, especially on Windows where we usually don't supervise it with systemd). Therefore, a configuration setting has been added that lets ezau retry the upload process. This is not 100% good and failsafe, because 1) it always waits a hardcoded amount of seconds (instead of e.g. using a proper backoff timer) 2) it blocks the rest of the process, so no logs will be compressed while it is retrying a single log 3) after those retries, the process will still exit But it is a good first approximation, and the aforementioned issues can be fixed "relatively easily" (e.g. by moving the whole per-log logic into a separate thread(pool) and handling failures even better).
2020-06-18respect Discord message max lengthDaniel Schadt
This will ensure that ezau will post a new message if editing the old one would push it above the character limit.
2020-06-18add some more context to some errorsDaniel Schadt
Some error messages currently look very weird. For example, if the given configuration file does not exist, it gives you an error about a missing file - which could also be the file to upload though, as the error doesn't specify. Therefore, some more context for the error messages is nice. The "sourceback" could still use some work.
2020-06-18properly pass on error from post_linkDaniel Schadt
This makes discord::post_link return any Error (or well, Result) that is produced by the ready event handler.