* Extract paths from logs and check for blocked content
* Extract paths in command line analyzer
* Split disabled paths message if necessary
* Log the blocked path that caused a warning
* Remove duplicate command alias
* Remove bad characters from extracted filepaths
* Fix is_path_disabled() only checking the full path
* Apply formatting
* Improve wording for the warning embeds
* Apply formatting
* 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
* 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>
* 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
* Create size helper
* Replace fixed RAM units with size helper
* Rename CommonErrors to CommonError
Enum names should be singular
* Apply black formatting
* 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
* Fix modified log detection for multi game logs
* Add app_info to analyse() output
* Add main standalone script for easy debugging
* Apply black formatting
* Update meme.py with .lick meme command
Never done this before.
* Update meme.py with lick meme v2
I used a web-based version of Black to fix the parsing error but couldn't get it to register the commands while indented?
* Add black formatting
* Apply suggestions from code review
Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com>
---------
Co-authored-by: TSR Berry <20988865+TSRBerry@users.noreply.github.com>
* 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
* 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
* logfilereader: Fix analysing every attachment
Now Ryuko will only analyse logs again
* logfilereader: Stop analysing message.txt
Most of the time these won't contain all the info we need anyway.
* Apply black formatting
* 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