Commit graph

56 commits

Author SHA1 Message Date
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
seth
84a7cfe151
use http client from context 2024-04-26 20:53:13 -04:00
seth
0b0779f8b7
clean up 2024-03-31 17:26:16 -04:00
seth
90387c5a3b
once_cell -> std 2024-03-30 03:04:32 -04:00
seth
59bf42998b
feat: add /set_welcome command 2024-03-29 18:07:56 -04:00
seth
827b5a4bd7 analyze_logs: introduce LogProvider trait 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
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
915ef54dc3
log more actions + tidy up things 2024-03-03 18:32:44 -05:00
seth
651f14d724
storage: make constructors more idiomatic 2024-03-03 18:06:40 -05:00
seth
fafa0bf689
refactor: don't use re-exports of eyre & owo-colors 2024-01-27 23:25:38 -05:00
seth
a4abdd72e4
refactor: harden clippy lints 2024-01-27 23:18:35 -05:00
seth
2b3d81cfa4
refactor: better scope eta messages const 2024-01-27 23:10:00 -05:00
seth
72e171b960
chore: cleanup unused config properties 2024-01-27 23:03:34 -05:00
seth
7252ced3cb
refactor!: use poise 0.6.1 2024-01-27 22:29:56 -05:00
seth
f0550dd429
style: use tabs over spaces 2024-01-08 14:56:37 -05:00
seth
640409f2e2
feat: reintroduce message link embeds
Signed-off-by: seth <getchoo@tuta.io>
2023-12-04 09:22:12 -05:00
seth
45403e9d9b
initial rewrite in rust & moderation commands
Signed-off-by: seth <getchoo@tuta.io>
2023-12-03 18:29:04 -05:00
Sefa Eyeoglu
1c7e263f4f
fix: increase PK delay
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-11-17 18:58:39 +01:00
Sefa Eyeoglu
e6337cf6bd
feat: store pluralkit users in redis
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-11-16 23:06:32 +01:00
TheKodeToad
f340137996
Check for message proxied through PluralKit
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2023-11-15 11:12:06 +00:00
Ryan Cao
0759108d35
fix: linting error 2023-06-10 16:54:07 +08:00
TheKodeToad
2e4e81d7a2 Oops :pofat: 2023-06-04 12:45:33 +01:00
Sefa Eyeoglu
cd8f8e4f9b
fix: check if there are any embeds
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-05-31 07:43:11 +02:00
Sefa Eyeoglu
752a83f159
fix: only reply if there are any embeds
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-05-30 19:51:28 +02:00
Sefa Eyeoglu
30b5293477
fix: only send expanded message link if present
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-05-20 11:50:22 +02:00
Ryan Cao
71715213de
feat(expandMessage): combine embeds and use reactions for deleting 2023-05-14 18:06:27 +08:00
Ryan Cao
e451c1df4c
fix(expandMessage): check for webhookId correctly 2023-05-14 18:06:27 +08:00
PandaNinjas
e5b85e454d
fix: don't expand message links for bots (#164)
Signed-off-by: PandaNinjas <admin@malwarefight.wip.la>
2023-05-13 13:27:30 +08:00
IThundxr
569a08c95d
add delete button for message link embeds (#117)
Signed-off-by: IThundxr <contact@ithundxr.dev>
2023-03-10 09:33:14 +08:00
Sefa Eyeoglu
21390fed8a
chore: prettier
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-02-17 00:34:11 +01:00
Sefa Eyeoglu
66a63a12e2
fix: actually check for guildid
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-02-16 22:41:25 +01:00
Sefa Eyeoglu
2d41ce361a
fix: restrict to three message previews
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-02-16 22:30:02 +01:00
Sefa Eyeoglu
6f1823bfd4
feat: use reply instead
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-02-16 22:25:46 +01:00
Sefa Eyeoglu
2b99eb0579
refactor: use matchAll instead of while loop
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-02-16 22:23:18 +01:00
PandaNinjas
f099cc9900
More trolling
Signed-off-by: PandaNinjas <admin@malwarefight.gq>
2023-02-12 18:05:50 -08:00
PandaNinjas
3cdc51ced4
Fix loop
Signed-off-by: PandaNinjas <admin@malwarefight.gq>
2023-02-12 20:34:06 +00:00
PandaNinjas
d02d4e07ef
Add footer (not skidding Pepperjack (real)) 2023-01-20 20:43:50 -08:00
PandaNinjas
ca1c609c94
Change double quote to single quote (prettier moment) 2023-01-17 09:01:08 -08:00
PandaNinjas
69c78c1458
Formatting 2023-01-17 08:58:37 -08:00
PandaNinjas
5181e31012
Merge branch 'main' of https://github.com/pandaninjas/bot into main 2023-01-17 08:57:45 -08:00
PandaNinjas
c2ad28c36d
Try to fix bot crash 2023-01-17 08:27:55 -08:00
Ryan Cao
e856c04108
formatting issues 2023-01-17 13:11:36 +08:00
PandaNinjas
2be950d71d
Add await (thank you for the ping /srs)
Signed-off-by: PandaNinjas <admin@malwarefight.gq>
2023-01-17 03:45:39 +00:00
PandaNinjas
90fbd3f717
Make it a link button 2023-01-16 19:03:28 -08:00
PandaNinjas
d2119299fa
Import the message type as a type
Co-authored-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
Signed-off-by: PandaNinjas <admin@malwarefight.gq>
2023-01-17 02:38:36 +00:00
PandaNinjas
73676c28f4
feat: expanding discord links 2023-01-14 16:24:32 -08:00
IThundxr
a88ccd92ff
Fixes 2.0 (#8) 2022-10-22 14:16:58 +08:00
Ryan Cao
13effc58fe
fix formatting 2022-10-21 20:04:48 +08:00