ryuko-ng/robocop_ng/cogs
Mark Araujo 8550271af6
Log reading capabilities to Ryuko bot (#3)
* Add log reading capabilities
- User hardware specs
- Game info
- Controller configuration
- Last error snippet in log
- Warnings when using macOS or Intel iGPU
- Warning of logs not turned on

* Allowed log reading channels moved to config
This is easier for contributors to change their config file for testing

* Fixes large files not showing error snippet
- Large files are partially downloaded and show header information which
messes with log analysis, this gets stripped.
- Finding error messages function improved

* Default logs enabled shows a green checkmark

* Better feedback with log parsing message
- Bot prints `Log parsing...` and update message once log analysis done
- Added better error logging to console

* Better handling of invalid files warning
- Also fixed typo with bot message edit function

* Refactored embed generation to make more sense
- Embed is now based off a generic json assuming Unknown values at first
- Embed fields moved closer together
- Fields with newlines joined instead of manually separated
- Intel iGPU message changed to show preference for discrete GPU's

* Refactor to be simpler and easier to read.
- Hardware, ryujinx and log analysis split into separate functions
- Regex explicitly defined for each property instead of confusing map
- Added user settings reported, shows PPTC enabled or disabled

* Game notes sorted by order of severity
Notes will appear with most severe warnings first as follows:  ⚠️

* Analyses toggleable settings that appear in log
Currently these are: PPTC, audio backed, docked/handheld and vsync.
- Formatting change so these settings are more visible in bot embed

* Refactored user_settings, rewording of bot embed
- User settings reading handles missing log info for older versions
- `Switch Mode` (docked/handheld info) changed to `Console Mode`
- Missing firmware warning if firmware not installed

* Warning when shader cache collision detected

* Notes time elapsed in log file
- Error handling for no notes to log

* Show values for some user settings: audio, docked, missing services, resolution, shader cache and vsync

* Analyse user changeable settings
- Restructed embed to allow easier settings handling
- Changed embed formatting to deal with inline colums more cleanly

* Log file is now default function parameter

* Better sorting of analysis messages
- Now sorted alphabetically and by severity for consistency
- Show available RAM in low RAM warning
- Fix variable name misspelling

* Logging level changed to info

* Warn if bad dump in error message

* Add warning for no custom build support

* Warn user to post log in correct channel
- Warn about not supporting custom builds
- Warn to post in pr build if detected
- Warn about channels to post logs if detected in #general
2023-03-03 19:58:43 +01:00
..
admin.py Fix !quit, closes #89 2022-08-10 20:05:54 +02:00
basic.py black pass 2022-05-24 23:29:46 +02:00
basic_reswitched.py make more of the code dpy2 friendly 2022-05-24 20:35:42 +02:00
common.py make more of the code dpy2 friendly 2022-05-24 20:35:42 +02:00
err.py make more of the code dpy2 friendly 2022-05-24 20:35:42 +02:00
imagemanip.py make more of the code dpy2 friendly 2022-05-24 20:35:42 +02:00
invites.py make more of the code dpy2 friendly 2022-05-24 20:35:42 +02:00
legacy.py make more of the code dpy2 friendly 2022-05-24 20:35:42 +02:00
links.py make more of the code dpy2 friendly 2022-05-24 20:35:42 +02:00
lists.py make more of the code dpy2 friendly 2022-05-24 20:35:42 +02:00
lockdown.py make more of the code dpy2 friendly 2022-05-24 20:35:42 +02:00
logfilereader.py Log reading capabilities to Ryuko bot (#3) 2023-03-03 19:58:43 +01:00
logs.py make more of the code dpy2 friendly 2022-05-24 20:35:42 +02:00
meme.py make more of the code dpy2 friendly 2022-05-24 20:35:42 +02:00
mod.py Rewrite the verification code to the one required by Ryujinx Guild 2022-11-10 14:41:26 +01:00
mod_note.py make more of the code dpy2 friendly 2022-05-24 20:35:42 +02:00
mod_reacts.py make more of the code dpy2 friendly 2022-05-24 20:35:42 +02:00
mod_reswitched.py make more of the code dpy2 friendly 2022-05-24 20:35:42 +02:00
mod_timed.py make more of the code dpy2 friendly 2022-05-24 20:35:42 +02:00
mod_userlog.py make more of the code dpy2 friendly 2022-05-24 20:35:42 +02:00
mod_watch.py make more of the code dpy2 friendly 2022-05-24 20:35:42 +02:00
pin.py make more of the code dpy2 friendly 2022-05-24 20:35:42 +02:00
remind.py make more of the code dpy2 friendly 2022-05-24 20:35:42 +02:00
robocronp.py fix robocronp 2022-05-24 23:17:55 +02:00
ryujinx_verification.py Rewrite the verification code to the one required by Ryujinx Guild 2022-11-10 14:41:26 +01:00
sar.py make more of the code dpy2 friendly 2022-05-24 20:35:42 +02:00
verification.py make more of the code dpy2 friendly 2022-05-24 20:35:42 +02:00
yubicootp.py black pass 2022-05-24 23:29:46 +02:00