Commit graph

96 commits

Author SHA1 Message Date
TSRBerry 37651883bc
Fix broken build id regex & Return a set from get_filepaths (#110)
* log_analyser: Match application or title when searching for build IDs

* log_analyser: Return a set from get_filepaths
2024-09-24 20:09:33 +02:00
TSRBerry 147011eba1
Automatically block analysis of logs containing blocked contents in paths (#108)
* 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
2024-09-01 15:53:44 +02:00
ekuland 76fe1dbbd4
Add Note for Rosetta (#109)
* Add get_cpu_notes

Check cpu for Virtual Apple and Note to disable Rosetta

* Update ryujinx_log_analyser.py

fix misspelling

* Apply formatting
2024-08-27 19:34:24 +02:00
TSRBerry 7b5b9fc104
log_analyzer: Fix cheat detection (#101) 2024-05-18 18:24:03 +02:00
Piplup abcf1c7c9f
Better Slowmode command (#95)
* Update mod.py

* Handle optional slowmode parameter correctly

---------

Co-authored-by: TSR Berry <20988865+TSRBerry@users.noreply.github.com>
2024-05-15 17:21:21 +02:00
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 ac3829f508
remind: Add message references and don't remove reminder confirmations (#97)
* Don't remove reminder confirmation messages

* Add message references to reminders
2024-04-14 15:34:12 +02:00
TSRBerry b2cda3fe85
vanity_url: Fix crash when editing a guild (#96) 2024-04-14 15:17:18 +02:00
TSRBerry 97f534eb17
Automatically update configured vanity URLs (#91) 2024-03-11 16:47:15 +01: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 96016ae7f0
Fix macro usage in DMs (#75) 2023-10-09 22:53:57 +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 3aa1149b10
QoL: Automatically create bot invite URLs (#74)
* Automatically create an invite_url

* Change invite url log message
2023-09-11 21:24:23 +02:00
TSRBerry 351b9655e3
Allow analyze command to be executed by everyone (#71) 2023-09-11 21:22:44 +02:00
TSRBerry 492d43c608
Fix reply command targets (#70) 2023-09-11 21:22:09 +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
Piplup 3faa6c5bd4
Update mod.py with .slowmode command (#56)
* dirty command

* fixed slowmode
2023-06-26 08:01:36 +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 2ca94dd377
macro: Allow users to target multiple members when invoking macros (#64)
* macro: Use Greedy type annotation to optionally match multiple members

* Apply black formatting
2023-06-26 07:47:57 +02:00
Aceofgods ed26c0f552
Update meme.py with .lick meme command (#53)
* 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>
2023-06-21 09:09:42 +02:00
TSRBerry 50c8b11f26
Finally fix list_macros completely (#61) 2023-06-12 09:45:51 +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 8f25f13eff
macro: Add paging for list_macros() (#55)
* macro: Add paging for list_macros()

* Apply black formatting
2023-05-28 10:36:37 +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 df2f3b7ac5
Hotfix clearreactsbyuser() 2023-05-05 18:11:32 +02:00
TSR Berry 52d7c08324
Fix minor spelling mistake v2 2023-05-04 15:39:10 +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
TSR Berry 1eacb849f5
Convert all ids to uppercase 2023-05-03 00:53:48 +02:00
TSR Berry f72afbca29
Fix minor spelling mistake 2023-05-02 22:03:40 +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 18970723e7
Invoke warn with all positional args (#47) 2023-05-01 22:14:35 +02:00
TSRBerry 2506aa6437
Small set of hotfixes to make blocked_tids behave properly (#46)
* Revert log.exception() call to working state

* Await add_roles call and invoke warn command correctly

* Apply black formatting
2023-05-01 21:02:37 +02:00
TSRBerry 5be9915501
logfilereader: Fix macOS version detection & Reply to analyzed log (#45)
* Fix macOS version detection correctly this time

* Reply to the message with the uploaded log

* Apply black formatting
2023-04-28 22:38:23 +02:00
TSRBerry 45538eec6f
logfilereader: Fix analysing every attachment (#44)
* 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
2023-04-27 20:56:57 +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
TSRBerry 20a7d0506c
Fix logfilereader not detecting games (#40) 2023-04-20 07:41:18 +02:00
TSRBerry 3a0230259a
reply-targets: Await the result of fetch_message() (#39)
* Await the result of fetch_message()

* Apply black formatting
2023-04-05 18:57:46 +02:00
Mary bf59634898 Fix broken get_userlog in logs 2023-04-05 18:33:24 +02:00
Mary dea6cf5f38 Remove imagemanip 2023-04-05 15:03:54 +02:00