Commit graph

222 commits

Author SHA1 Message Date
maskers
5417bdf754
Fix support channel detection (#513)
* fix support channel detection

* add `/` to `/tag log`

---------

Co-authored-by: maskers <97827489+mskrss@users.noreply.github.com>
2025-02-17 14:59:55 +00:00
TheKodeToad
1625a455e0
Hotfix: Fix delete_on_reaction check being inverted
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2025-02-01 20:56:20 +00:00
Sefa Eyeoglu
9e78f07015 fix: fix message interaction deprecation
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-11-26 21:23:02 +01:00
maskers
c7bee19ab1 add checksum mismatch detection 2024-11-12 10:49:42 +01:00
seth
163898a98b chore: fix warnings for rust 2024 2024-11-12 08:27:23 +01:00
seth
872cc0cc08 fix: ensure http client user agent is set 2024-11-12 08:27:23 +01:00
seth
7266e96816 chore: don't use Message::is_own() 2024-11-12 08:27:23 +01:00
Rahul Imran
8af45cd6dd
Fix: Add detection for 32 bit java on -Xms (#425)
* Fix: Add detection for 32 bit java on -Xms

Before it was only checking -Xmx, this also checks -Xms

Signed-off-by: Rahul Imran <notlutitious@gmail.com>

* remove extra ;

Signed-off-by: Rahul Imran <notlutitious@gmail.com>

---------

Signed-off-by: Rahul Imran <notlutitious@gmail.com>
2024-10-18 10:42:13 +01:00
Sefa Eyeoglu
0631e4b784
fix: format
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-10-01 09:41:29 +02:00
Sefa Eyeoglu
2e0779fc6c
fix: install default crypto provider
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-10-01 09:23:22 +02:00
maskers
342f85c963
Minor log parsing bug fixes (#402)
* fix java arg logic

* fix missing libraries detection for discord attached files

* change `\r\n` to `\n` in the entire log instead

---------

Co-authored-by: maskers <97827489+mskrss@users.noreply.github.com>
2024-09-15 11:59:46 +01:00
Samalando
b940703adc Update eta.rs
Signed-off-by: Samalando <156577273+Samalando@users.noreply.github.com>
2024-09-01 15:24:06 +02:00
maskers
abe4b74dde
Add more common issues to look for in logs (#363)
* remove exitcode `-805306369` triggering oom

* missing mod dependencies on forge

* legacyjavafixer

* `Couldn't extract native jar` fix

* detect launching offline without having minecraft assets downloaded

* missing indium with sodium

* out of disk space

* 32 bit java

* wrong intermediary mappings version

* `-Dfml.ignoreInvalidMinecraftCertificates=true`

* cleanup

* tell people using prism 8.0+ to update just by pressing `Update` in prism

* Apply suggestions from code review

Co-authored-by: TheKodeToad <TheKodeToad@proton.me>
Signed-off-by: maskers <97827489+maskersss@users.noreply.github.com>

* Update src/handlers/event/analyze_logs/issues.rs

Co-authored-by: TheKodeToad <TheKodeToad@proton.me>
Signed-off-by: maskers <97827489+maskersss@users.noreply.github.com>

* remove some backticks

* Apply suggestions from code review

Co-authored-by: seth <getchoo@tuta.io>
Signed-off-by: maskers <97827489+maskersss@users.noreply.github.com>

* cleanup

---------

Signed-off-by: maskers <97827489+maskersss@users.noreply.github.com>
Co-authored-by: maskers <97827489+mskrss@users.noreply.github.com>
Co-authored-by: TheKodeToad <TheKodeToad@proton.me>
Co-authored-by: seth <getchoo@tuta.io>
2024-08-08 01:09:40 +01:00
KTrain
896ba37604
improvement: reword message when no issues were found automatically (#379)
* improvement: reword message when no issues were found automatically

* Apply suggested change from TheKodeToad

Co-authored-by: TheKodeToad <TheKodeToad@proton.me>
Signed-off-by: KTrain <69028025+KTrain5169@users.noreply.github.com>

---------

Signed-off-by: KTrain <69028025+KTrain5169@users.noreply.github.com>
Co-authored-by: TheKodeToad <TheKodeToad@proton.me>
2024-08-05 13:22:49 +01:00
TheKodeToad
19a12133ff Disable mentions 2024-05-05 17:40:49 +02:00
Sefa Eyeoglu
0838418eb2 feat(analyze_logs): detect Windows OOM
Co-authored-by: Wesley Bryie <wes@wesbryie.tech>
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-05-01 11:26:20 +02:00
Sefa Eyeoglu
c8501b1bf4 fix: fix clippy warnings
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-05-01 10:48:05 +02:00
TheKodeToad
e949ff445e Fix outdated launcher check 2024-05-01 10:48:05 +02:00
TheKodeToad
e4ef3d0c66 Better ping command 2024-05-01 10:47:49 +02:00
TheKodeToad
5f5f399c8f
Fix #325 2024-05-01 00:05:00 +01:00
Sefa Eyeoglu
cdc0dac0c3 fix(cmd/set_welcome): send roles last
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-05-01 00:26:37 +02:00
TheKodeToad
a4197bc5af Fix /joke 2024-04-30 23:35:12 +02:00
Sefa Eyeoglu
ba70c61bc4 feat(cmd/say): link to said message
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-04-30 23:34:59 +02:00
Sefa Eyeoglu
ca7bacb5ac
Revert "remove reactions from messages older than n days"
This reverts commit 94b12a1069.
2024-04-30 22:08:39 +02:00
Sefa Eyeoglu
a51210289b
Revert "block_reaction: log old reactions"
This reverts commit 4795e152ca.
2024-04-30 22:06:25 +02:00
Sefa Eyeoglu
d25776d45b
Revert "block_reaction: avoid rate limits"
This reverts commit 3503dda44d.
2024-04-30 22:06:24 +02:00
seth
84a7cfe151
use http client from context 2024-04-26 20:53:13 -04:00
seth
3503dda44d
block_reaction: avoid rate limits 2024-04-09 22:36:07 -04:00
seth
4795e152ca
block_reaction: log old reactions 2024-04-02 19:51:22 -04:00
seth
94b12a1069
remove reactions from messages older than n days 2024-04-02 19:23:15 -04:00
seth
0b0779f8b7
clean up 2024-03-31 17:26:16 -04:00
seth
9dfc3b21ff
set_welcome: wire up role interaction 2024-03-31 14:51:21 -04:00
seth
a2106caf22
set_welcome: bulk delete messages 2024-03-31 13:12:13 -04:00
seth
a3014f2694
consts: store colors as hex codes in struct 2024-03-30 04:11:04 -04:00
seth
1ff95de3bf
make sure to borrow in getters 2024-03-30 03:42:53 -04:00
seth
29ed728fc1
drop rand 2024-03-30 03:24:47 -04:00
seth
90387c5a3b
once_cell -> std 2024-03-30 03:04:32 -04:00
seth
a41a84fd2d
say: use channel_id, only use prefix command 2024-03-29 18:08:01 -04:00
seth
59bf42998b
feat: add /set_welcome command 2024-03-29 18:07:56 -04:00
seth
239928a22a
crates: bump octocrab, redis, & reqwest 2024-03-27 19:17:10 -04:00
seth
4e11bd2bd7 analyze_logs: fix 0x0 regex 2024-03-27 23:04:32 +00:00
seth
a9a63f36ad treewide: allow for running w/o storage 2024-03-27 23:04:32 +00:00
seth
827b5a4bd7 analyze_logs: introduce LogProvider trait 2024-03-27 23:04:32 +00:00
seth
b63ecde6b4 commands: tidy up help & joke 2024-03-27 23:04:32 +00:00
seth
e847ea0ad0 api: use error_for_status_ref() 2024-03-27 23:04:32 +00:00
seth
6bd5db7208
utils::resolve_message: use perms from behind pk proxy 2024-03-18 09:48:37 -04:00
seth
af9938a3c6
handlers::event: improve tracing 2024-03-18 08:45:25 -04:00
TheKodeToad
9d0c022c68
Many fixes and tweaks
* Fix tags (again?)

* Make tag names more consistent

* Remove prefix commands (not implemented well and not worth fixing)

* Allow '-'s in tags

* Fix /joke

* Fix /members

* Fix intel_hd issue match

* Fix log analysis reply

* Clearer log analysis messages

It's weird to say the process failed when no issues were found.

* Clippy

* Final doc cleanup

* Fix link expanding

* Fix duplicate event filtering

The other code simply does not work. ChannelId does have a method to grab members but I'm not sure whether it would work either.

* Remove message resolution

It's surprisingly hard to create an bug-free implementation.

* Fix pluralkit detection

* simplify tag codegen

* commands: improve error handling in members

unwrap() bad!!!11!!

* events: use debug logs for pk checks

* Revert "Remove message resolution"

This reverts commit 0d9f224a81917212adafdeb2213f3cc11b44cf88.

* Bring back prefix commands with "."

(it's easier to type)

* Add help

* Fix messsage resolution

* utils: factor out message resolution

* Improve tag message

* Disable VC support for message resolution for now

* Improve prefix command usage

Update on edit, display additional tip with wrong usage.

* Check invoke_on_edit to display tip

* Add defer in commands which make http requests

* Apply tag sorting to slash commands too

* handlers::error: `+=` -> `writeln!`

* handlers::event: ignore own new messages

* help: remove unneeded format!

* optimize for size in release builds

* nix: cleanup deployment expressions

* nix: use treefmt

* nix: update flake.lock

Flake lock file updates:

• Updated input 'fenix':
    'github:nix-community/fenix/eb683549b7d76b12d1a009f888b91b70ed34485f' (2024-01-27)
  → 'github:nix-community/fenix/c53bb4a32f2fce7acf4e8e160a54779c4460ffdb' (2024-03-17)
• Updated input 'fenix/rust-analyzer-src':
    'github:rust-lang/rust-analyzer/596e5c77cf5b2b660b3ac2ce732fa0596c246d9b' (2024-01-26)
  → 'github:rust-lang/rust-analyzer/5ecace48f693afaa6adf8cb23086b651db3aec96' (2024-03-16)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/4fddc9be4eaf195d631333908f2a454b03628ee5' (2024-01-25)
  → 'github:nixos/nixpkgs/34ad8c9f29a18b4dd97a9ad40ceb16954f24afe7' (2024-03-17)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/f56597d53fd174f796b5a7d3ee0b494f9e2285cc' (2024-01-20)
  → 'github:cachix/pre-commit-hooks.nix/5df5a70ad7575f6601d91f0efec95dd9bc619431' (2024-02-15)
• Updated input 'procfile-nix':
    'github:getchoo/procfile-nix/31a33e4264e5c6214844993c5b508fb3500ef5cd' (2024-01-27)
  → 'github:getchoo/procfile-nix/7a0ab379a4ab71c9deccaca9fb463e9aaea363d8' (2024-03-14)

---------

Co-authored-by: seth <getchoo@tuta.io>
2024-03-18 01:01:46 +00:00
seth
cd1e3220c7
support_onboard: check if bot has already joined thread 2024-03-03 18:51:18 -05:00
seth
915ef54dc3
log more actions + tidy up things 2024-03-03 18:32:44 -05:00