Commit graph

458 commits

Author SHA1 Message Date
Mark Araujo
da9ea20a9d Shows error snippet on empty log (#6)
* Error snippet shown on empty log
- Shader cache corruption warning

* Loop to get missing info in log

* Error search handles multiple terms
- Minor spelling correction for resolution value
- User settings visible on empty log
2021-07-31 23:34:39 +02:00
Mark Araujo
d1c536e792 Ryuko bot fixes and improvements (#4)
* Fixes HTTPException by properly handling newline regex

* Improves information display:
- Shows settings info if no game is detected running
- Empty log warning takes up less space
- Error, Mods and Notes not shown on empty log

* Improved empty log message
- Also allow logs parsing in linux channel, as well as mentioning
when posting in non-allowed channels

* Fix ResScale parse error, better empty log message

* DM users about correct channels instead of in chat

* Fix variable spelling,  clearer bad dump warning
2021-07-31 23:34:39 +02:00
Mary
d562e2ab88 Fix logfilereader logic 2021-07-31 23:34:39 +02:00
Mark Araujo
8e05468cb7 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
2021-07-31 23:34:37 +02:00
Ave Ozkal
86eb6a7ad2 Rewrite the verification code to the one required by Ryujinx Guild 2021-07-31 23:34:21 +02:00
ave
5ef0f42967 poetryify robocop 2021-08-01 00:28:20 +03:00
ave
7dfc2c427b mod: introduce bandel command 2021-07-28 00:04:58 +03:00
ave
8e5e2dc01d
Merge pull request #80 from DavidBuchanan314/master
Fix broken links to reswitched.team
2021-07-15 11:37:51 +00:00
David Buchanan
fa7d5f2db5 Fix broken links: reswitched.team -> reswitched.github.io 2021-07-15 12:38:18 +01:00
Ave but on a massive iMac
be71f129d9 massban fixes 2021-06-08 19:07:23 +03:00
Ave but on a massive iMac
edacaaef5b massban fixes 2021-06-08 19:04:06 +03:00
Ave but on a massive iMac
c1ffd8b57b massban fixes 2021-06-08 19:03:29 +03:00
Ave but on a massive iMac
cff5a3f80d massban fixes 2021-06-08 19:02:58 +03:00
Ave but on a massive iMac
1ebb049f09 Add massban command 2021-06-08 19:00:39 +03:00
Ave
6a6c88cdb8
Merge pull request #79 from Ryujinx/feature/docker
Add Dockerfile
2021-02-28 16:47:05 +03:00
Mary
51a4bf948b Add Dockerfile 2021-02-28 14:45:31 +01:00
Ave
4450573013
Move some count commands over to a separate cog 2021-02-13 01:47:00 +03:00
Ave
cdd98f49b5
mod: hotfix 2021-01-29 23:13:22 +03:00
Ave
f39d6fa4ae
mod: Don't ping 2021-01-29 23:11:42 +03:00
Ave
586c6239b2
Merge pull request #77 from noirscape/roles-accessed-too-early
Fix a variable 'roles' referenced before assignment error when relying on default fallback.
2021-01-09 01:43:55 +03:00
noirscape
9b3a442699 Fix a variable 'roles' referenced before assignment error when relying on default fallback. 2021-01-08 23:37:37 +01:00
Ave
24182b11ca mod_reswitched: Also allow togglemod 2020-11-04 19:01:19 +03:00
Ave
161caf30e6 yubicootp: one more bugfix 2020-10-13 18:15:18 +03:00
Ave
f5ece42b15 yubicootp: bugfix 2020-10-13 18:12:55 +03:00
Ave
adc4931a57 yubicootp: Hackily fix issue of misreading padded signatures from
responses :)
2020-10-13 18:10:23 +03:00
Ave
0487031974
yubicootp: Add signature support
Works both ways! Optional too!
2020-10-13 18:04:21 +03:00
Ave
490916a1ca
yubicootp: Limit to one OTP per message 2020-10-13 17:37:13 +03:00
Ave
8d1ef828f0
yubicootp: Properly fetch mid-message OTPs, allow 1+ OTPs per msg 2020-10-13 17:32:55 +03:00
Ave
6f30585c96
yubicootp: Attempt to make it work mid-sentence 2020-10-13 17:29:00 +03:00
Ave
44518e810e
Add automated Yubico OTP revoke support
Thanks @linuxgemini for all your help with this!
2020-10-13 17:13:24 +03:00
Ave
b2dd805f2d
Merge pull request #76 from leo60228/remove-asyncio
Remove asyncio from requirements.txt
2020-10-02 03:29:15 +03:00
Ave
ff7ba6790a
Merge pull request #75 from leo60228/sanitize
Escape Markdown in clean_content calls
2020-10-02 03:28:56 +03:00
leo60228
d6aa8f7e67 Remove asyncio from requirements.txt
asyncio is bundled with Python 3.4+, and the version on PyPI may have
issues with newer versions of Python on some configurations.
2020-10-01 20:15:33 -04:00
leo60228
8d899cf9a7 Escape Markdown in clean_content calls
Fixes #74
2020-10-01 20:03:41 -04:00
Ave
165ce2f442
Fix privileged intents 2020-10-01 22:07:50 +03:00
Ave
d905db5666
Support privileged intents 2020-10-01 22:05:40 +03:00
Ave
4b0eae89b2
Year of linux 2020-09-04 01:05:07 +03:00
Ave
2c967764c5
mod_reswitched/pingmod: change wording 2020-09-01 21:18:17 +03:00
Ave
ffb129770d
mod_reswitched: Push 2020-09-01 10:58:35 +03:00
Ave
7cb112cf5a
Warn on commands where user often leaves (by force orotherwise) if it happens 2020-06-27 02:01:38 +03:00
Ave
009cf95ae5
robocronp: hotfix 2020-06-13 13:34:37 +03:00
Ave
a98bcfb4e9
Fix robocronp fail when verificaiton isn't used
Closes #73
2020-06-13 13:33:00 +03:00
pixel-stuck
d8ba6b42d6
Update verification.py
fix missing paren (hopefully this was the intended behavior)
2020-06-13 01:57:11 -04:00
Ave
a583240a93
verification: Fix issue with wrong messages
Closes #72

Bit of a hack, heh.
2020-06-09 04:24:47 +03:00
Ave
057b3c81a9
robocop: extend whitelist 2020-06-04 23:42:28 +03:00
Ave
52028b3bd9
Mark "deepsea" as potential piracy violation 2020-06-02 03:52:46 +03:00
Ave
6a703f0f7d
mod_userlog: add jump links 2020-05-29 18:12:55 +03:00
Ave
ca9ccde0e5
mod: even more jump link stylization 2020-05-29 18:10:52 +03:00
Ave
4bf7d8db98
mod: Stylize the jump link 2020-05-29 18:09:47 +03:00
Ave
944e4256b3
mod: Put jump links to mod actions
Closes #43
2020-05-29 18:06:45 +03:00