Commit graph

29 commits

Author SHA1 Message Date
WilliamWsyHK
95971e5359
Simple fix for time elapsed (#94) 2024-05-15 17:04:32 +02:00
WilliamWsyHK
9e395ffa10
Add log parsing capability to capture only enabled mods (#93)
* Add log parsing capability to capture only enabled mods

* Fix Python Black format complain

* Add fallback so that old logs without mod status can still be recognized

* stop Python Black complain again
2024-05-15 16:59:37 +02:00
Jerome A
41bc653bea
Add hypervisor in Logfile outputs (#92)
* Add hypervisor in logfile outputs

* fix typings

* moved setting

* Check if macos or not

* Replace "Not applicable" with "N/A"

* Add hypervisor setting to embed

---------

Co-authored-by: TSR Berry <20988865+TSRBerry@users.noreply.github.com>
2024-05-15 16:58:20 +02:00
TSRBerry
7c4bf15c93
Log purged messages, Fix macro usage in DMs & Fix reading empty files (#88)
* Log purged messages

* Fix CommandInvokeError for macros in DMs

* Fix decoding empty files and simplify read json logic

* Apply black formatting
2024-03-02 09:56:41 +01:00
TSRBerry
03e4fd3541
A small batch of fixes (#81)
* log_analyser: Use a set for notes

* Use sys.exc_info() instead of sys.exception()

sys.exception() only exists since python 3.11

* Create data dir if it doesn't exist
2024-01-06 15:33:01 +01:00
TSRBerry
72fd725a94
logfilereader: Fix RAM parser issues (#82)
* Create size helper

* Replace fixed RAM units with size helper

* Rename CommonErrors to CommonError

Enum names should be singular

* Apply black formatting
2023-11-20 19:48:35 +01:00
TSRBerry
9669556a39
Handle various file related issues (#76)
* Create state files if they don't exist yet

* Add notifications helper to message bot managers

* Inform bot managers about errors if possible

* Handle JSONDecodeErrors including empty files
2023-10-09 22:56:13 +02:00
TSRBerry
04add0f364
Remove RAM warning and show available RAM under general info as well (#77)
* Remove stub logs from default log levels

* Remove RAM warning

* Show available and total RAM under general info
2023-10-09 22:53:20 +02:00
TSRBerry
c33f4f29a2
log_analyser: Fix homebrew detection (#78) 2023-10-09 22:52:29 +02:00
TSRBerry
69b74069af
Fix modified log detection for multi game logs (#67)
* Fix modified log detection for multi game logs

* Add app_info to analyse() output

* Add main standalone script for easy debugging

* Apply black formatting
2023-07-05 08:35:00 +02:00
ealekseychik
2711e80529
Fix __get_app_name logic to take last game name on multiple games launch (#60)
Co-authored-by: Egor Alekseychik <e.alekseychik@syberry.com>
2023-06-26 08:00:53 +02:00
TSRBerry
cbd1f55dc3
Fix list_macros command still not working properly (#57)
* Properly split the message

* Apply black formatting
2023-06-09 16:28:11 +02:00
SamusAranX
7bcf3c28fe
Updated RAM regex to work with both MiB and GB units (#58)
* Updated RAM regex to work with both MiB and GB units

* Set RAM values to something useful in the event of a parsing error

* Ran python3 -m black .
2023-06-09 16:27:23 +02:00
TSRBerry
ec48a71b9e
Add exception for homebrew applications (#54) 2023-05-28 10:36:54 +02:00
TSRBerry
fa431c1d4c
Fix cheat names and last error snippet (#52) 2023-05-28 10:33:58 +02:00
TSR Berry
1462e0a36a
Fix another minor spelling mistake 2023-05-05 20:00:25 +02:00
TSRBerry
317a29db75
Refactor logfilereader (#50)
* Add disabled_ids as an alias

* Fix possible AttributeErrors in get_app_info()

* Refactor logfilereader.py

* Refactor disabled_ids and fix a few bugs

* Only add active cheats to the list
2023-05-05 18:38:01 +02:00
TSRBerry
9cd2d6550d
Small logfilereader fixes and improvements (#49)
* Fix cheat_information regex

* Add warning about default user profiles to notes

* Fix disable_ro_section issues

* Apply black formatting
2023-05-04 00:40:41 +02:00
TSRBerry
77fc2040a2
Delete all logs with blocked ids & Add cheat analysis (#48)
* Rename disabled_tids to disabled_ids and start adding support for bids

* Add cheat information

* Add analysis block for build ids

Always remove blocked game logs

* Add ro_section to disabled_ids

* Search all potential log files for blocked games

* Add commands to block ro_sections of games

* Change order of macro command arguments

* Add new disabled_ids key to wanted_jsons
2023-05-02 21:38:22 +02:00
TSRBerry
e937abb41c
Fix a few macro and logfilereader issues (#43)
* Try to improve exception logging

* Fix KeyError for new aliases

* List aliases and macros together

* Fix AttributeError when reading logs
2023-04-26 20:38:52 +02:00
TSRBerry
994438d3fa
Add commands to block log analysis of specific TIDs (#42)
* Small styling changes

* Add disallowed_roles for logfilereader

* macros: Fix naming and missing bot parameter

* Add disabled_tids helper

* Add pirate role to named role examples

* logfilereader: Add commands to block specific tids

* Add black formatting

* Add command to manually analyse logs

And some minor cleanup
2023-04-24 08:21:04 +02:00
Mary
48f9cc5cde Change robocop_ng to have state directory differ from working directory 2023-04-05 12:10:18 +02:00
TSRBerry
4ad2527a59
Use reply message to target a specific member & Add aliases for macros (#26)
* Remove command message when using macros

* macro: Reply to the same message as the author invoking the command

* logfilereader: Increase size of empty logs

* meme: Add reply targets

* mod: Add reply targets

* mod_timed: Add reply targets

* macro: Add aliases for macros

* macro: Fix list_macros not listing any macros

* Apply black formatting
2023-04-02 13:56:49 +02:00
TSRBerry
af92876835 Add macro cog (#24)
* Add macro cog

* Adjust macro cooldown

* Add macros.json to wanted_jsons

---------

Co-authored-by: Mary <mary@mary.zone>
2023-03-30 19:05:29 +02:00
TSRBerry
f10ab7bb50
Add role persistence cog (#23) 2023-03-30 19:01:04 +02:00
TSRBerry
bd5f37086e
Fix errors when trying to access an avatar and some cleanup (#22)
* Replace avatar_url with str(display_avatar)

* Rewrite imports and resolve a few warnings
2023-03-09 23:01:10 +01:00
Mary
c8a9603bb0
Fix build issues 2023-03-03 19:58:51 +01:00
VocalFan
ada0e92d32
Added many more error codes for .serr (#12)
* All the modules added, and all FS Error codes!

* Added common errors, plus all HIDBUS errors.

* Added all error codes for new modules!

* 0x2A2 fatal error added.

* Fixed accidental paste

* Added erpt error codes + new Devmenu module.
2023-03-03 19:58:51 +01:00
ave
5ef0f42967 poetryify robocop 2021-08-01 00:28:20 +03:00