Commit graph

52 commits

Author SHA1 Message Date
seth
59bf42998b
feat: add /set_welcome command 2024-03-29 18:07:56 -04:00
seth
a9a63f36ad treewide: allow for running w/o storage 2024-03-27 23:04:32 +00:00
seth
b63ecde6b4 commands: tidy up help & joke 2024-03-27 23:04:32 +00: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
f4fa737124
refactor: ok_or_else() -> ok_or_eyre() 2024-01-27 23:33:00 -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
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
TheKodeToad
f2979d4cde
Goodbye moderation
We'll probably keep zeppelin / move back to Lily -- however the reminders seem to currently be broken :/
2024-01-08 14:15:15 -05:00
seth
e0fea8d23e
refactor: use User over Member in moderation commands 2023-12-13 11:58:51 -05:00
seth
9dce57f527
moderation: dm user before taking action 2023-12-13 11:51:53 -05:00
seth
026d4cb607
rory: handle errors from api 2023-12-08 11:09:40 -05:00
seth
8376c45c2d
feat: flesh out storage object 2023-12-07 22:18:59 -05:00
seth
78c8aa7a18 refactor: create ModAction struct 2023-12-08 01:35:41 +00:00
TheKodeToad
20e2dbbe46
refactor moderation; change prefix to r 2023-12-06 17:00:38 +00:00
TheKodeToad
174d93544c
fix: do not 2023-12-05 14:49:18 +00:00
TheKodeToad
95fe62051b
chore: remove tag aliases
with tag names *and* aliases both being options, we reach the limit for
the discord API

Signed-off-by: seth <getchoo@tuta.io>
2023-12-04 18:19:08 -05:00
TheKodeToad
640690d9bf
refactor: use unwrap_or_default() for kick/ban reason
Signed-off-by: seth <getchoo@tuta.io>
2023-12-04 18:14:10 -05:00
seth
8bad9d9636
feat: add descriptions to commands & arguments
Signed-off-by: seth <getchoo@tuta.io>
2023-12-04 09:33:35 -05:00
seth
6e33299af7
feat: reintroduce ping command
Signed-off-by: seth <getchoo@tuta.io>
2023-12-04 09:26:08 -05:00
seth
30cc4a6220
feat: reintroduce tag command
Signed-off-by: seth <getchoo@tuta.io>
2023-12-04 05:11:54 -05:00
seth
a8eb4a212a
chore: deprecate modrinth command
Signed-off-by: seth <getchoo@tuta.io>
2023-12-03 18:51:59 -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
Ryan Cao
e1f8443eba
fix: check for empty strings
Co-authored-by: Sefa Eyeoglu <contact@scrumplex.net>
Signed-off-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
2023-05-24 17:17:15 +08:00
Ryan Cao
b11b564e2d
feat: add logging for say command (closes #166) 2023-05-24 11:25:06 +08:00
Ryan Cao
8e279ae5cf
refactor(tags): pull embed options to top level and adopt embed images 2023-05-14 18:06:25 +08:00
Chew
a45a7e3580
feat: rory command!!! 2022-12-23 22:23:26 -06:00
Ryan Cao
4e2afcc7f8
move tags to markdown 2022-10-29 23:18:03 +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
Ryan Cao
3e56cecbbf
Rebrand and fix links and tags (#5)
Co-authored-by: Kedas <m@yarn.network>
Co-authored-by: IThundxr <harshdhaliwal9767@gmail.com>
Co-authored-by: IThundxr <contact@ithundxr.dev>
2022-10-21 19:59:40 +08:00
Ryan Cao
622cbab216
various changes to bot 2022-10-18 17:42:04 +08:00
Ryan Cao
8bcdddccae
feat: add role menu 2022-09-16 22:48:07 +08:00
Ryan Cao
3367443e32
delete error messages after a few seconds 2022-09-16 22:16:52 +08:00
Ryan Cao
9829b2bf9b
oops 2022-09-16 22:00:08 +08:00
Ryan Cao
2a35abdce0
fix project not found 2022-09-16 21:58:41 +08:00
Ryan Cao
ff5882730d
feat: add tag mentions and deletions 2022-09-12 15:01:33 +08:00
Ryan Cao
8c5b317e11
add jokes kekw 2022-08-30 21:28:56 +08:00
Ryan Cao
4dd06821d1
fix modrinth no icon mod 2022-08-30 21:23:15 +08:00
Ryan Cao
d16bec1336
reorganize 2022-08-29 12:02:16 +08:00
Ryan Cao
8852026e2c
modrinth command 2022-08-29 10:44:40 +08:00
Ryan Cao
6c0f6fcb8b
add deferReply to long-duration commands 2022-08-25 20:42:37 +08:00
Ryan Cao
01ce9ad000
big cleanup & use slash commands 2022-08-24 18:32:10 +08:00
Ryan Cao
7c0b91e1be
upgrade to discord.js v14 2022-07-26 21:53:40 +08:00
Ryan Cao
35a64b4f25
use ? prefix for tags 2022-07-26 21:06:30 +08:00
Ryan Cao
ef22044922
"minor" refactor 2022-06-09 20:46:12 +08:00
Ryan Cao
d394096de3
types a bit 2022-06-08 22:52:42 +08:00
Ryan Cao
c282448d5b
nitpicks 2022-06-08 14:25:24 +08:00