Commit graph

66 commits

Author SHA1 Message Date
Aadi Desai 37694ac8cb
Update shuttle version 2024-01-24 16:43:08 +00:00
Aadi Desai a44f0ede7e
Update to Poise v0.6 2024-01-24 04:05:34 +00:00
Aadi Desai 54a93953bf
Update deps, shuttle v0.35.0 2023-12-08 17:05:07 +00:00
Aadi Desai 9ade860388
Fix clippy pedantic lints 2023-12-08 16:42:31 +00:00
Aadi Desai 2217d65201
Update deps, fixes for axum = "0.7" 2023-12-07 00:24:46 +00:00
Aadi Desai cdde26e940
Add GAIJIN_ID secret to struct Data + init code 2023-12-06 23:57:17 +00:00
Aadi Desai 5a41806567
Add mod extras in cmd/db for gaijin table 2023-12-06 23:56:35 +00:00
Aadi Desai 04d3cead63
Tidy: unnecessary clones, extra commas 2023-12-06 23:55:15 +00:00
Aadi Desai c9061e3e34
Update dependencies inc shuttle-runtime 2023-11-23 21:50:30 +00:00
Aadi Desai b7e120e2b2
Update shuttle and dependencies 2023-11-11 17:46:44 +00:00
Aadi Desai 1a94df8603
Add info to verified discord log message 2023-11-11 17:32:27 +00:00
Aadi Desai b93194e57f
Remove non-member role when user is verified 2023-11-11 17:31:07 +00:00
Aadi Desai 1fc926a989
Add /up endpoint for uptime monitoring 2023-10-25 00:29:27 +01:00
Aadi Desai 125dca39b9
Update dependencies 2023-10-24 17:30:41 +01:00
Aadi Desai 6684bd1832
Fix refresh_non_members command
Add `defer` to prevent timeout
2023-10-15 15:58:02 +01:00
Aadi Desai 63c453d370
Add refresh_non_members command
Add field to `Data` to store `RoleId`
Command streams all members and checks for no roles, giving users `non-member` role
2023-10-15 15:20:20 +01:00
Aadi Desai a9ac1e5368
Update set_members_non_fresher command
Old method capped at 1000 members, streaming implementation will include all members
2023-10-15 14:38:40 +01:00
Aadi Desai 4a066e4f00
Remove old member role if present, else welcome 2023-10-12 00:25:11 +01:00
Aadi Desai 550080482c
Add membership flow code for Associate Union Members 2023-10-09 17:28:34 +01:00
Aadi Desai d9d89f2a1b
Update dependencies 2023-10-09 17:28:03 +01:00
Aadi Desai 4ddd0315f4
Enable clippy::pedantic lint in code
Add `allow` for unreachable async functions
Reduce unnecessary code in main function using 2 functions
2023-09-29 19:16:27 +01:00
Aadi Desai 497b4576bc
Split cmds.rs into submodules 2023-09-29 18:19:53 +01:00
Aadi Desai 8e40216174
Add Shuttle link to readme 2023-09-29 18:07:38 +01:00
Aadi Desai f57e02d1cf
Fix subsriber to not print fields for serenity 2023-09-29 17:52:06 +01:00
Aadi Desai f3929a7885
Add custom tracing_subscriber 2023-09-29 01:48:12 +01:00
Aadi Desai f8eee82843
Use tracing macros over (e)println 2023-09-29 01:06:37 +01:00
Aadi Desai 4fc6a9e59f
Welcome member only when new 2023-09-27 16:18:20 +01:00
Aadi Desai d5039796cc
Fix cmds.rs printlns to output usernames 2023-09-27 14:13:11 +01:00
Aadi Desai 980dcae811
Fix whois id to be ephemeral 2023-09-27 12:07:51 +01:00
Aadi Desai c3f9ba6626
Switch all cmds to use Member instead of User 2023-09-26 02:05:12 +01:00
Aadi Desai 40cd160fa1
Add set_members_non_fresher command
Set all members to non-fresher
2023-09-26 02:04:31 +01:00
Aadi Desai eb16506e23
Add edit_member commands 2023-09-26 02:03:48 +01:00
Aadi Desai ef2be84ae0
More clippy::pedantic lints
Use `if let` rather than unnecessary match
2023-09-25 23:07:22 +01:00
Aadi Desai 83db8eb08f
Switch get_all_* commands to send files
Avoids character limits of messages
2023-09-25 23:01:00 +01:00
Aadi Desai d8f87d4ebd
Add fuzzy whois commands 2023-09-25 21:32:48 +01:00
Aadi Desai 89a9d2b085
Make whois commands case-insensitive 2023-09-25 21:31:12 +01:00
Aadi Desai 69e7a5a4f4
Fix clippy::pedantic lints 2023-09-25 13:23:32 +01:00
Aadi Desai eb77798c35
Add whois commands
TODO: commands are currently exact, add fuzzy finding
2023-09-25 12:36:45 +01:00
Aadi Desai 82e3eb76c1
Replace conversions with type-safe .into() calls 2023-09-25 12:36:01 +01:00
Aadi Desai b83f28a01c
Temporarily disable welcome message
Many users will be re-verifying now
2023-09-24 16:32:06 +01:00
Aadi Desai 8ef1e876d3
Update cmds logs to print name rather than ping 2023-09-24 16:17:23 +01:00
Aadi Desai ff654533e7
Add info message 2023-09-24 16:09:52 +01:00
Aadi Desai 2f7ddf660f
Add server GuildId 2023-09-24 16:05:46 +01:00
Aadi Desai 2e23cd3a01
Delete manual entry when denied 2023-09-24 16:05:28 +01:00
Aadi Desai 2dcc62aa26
Add ping when verification complete 2023-09-24 16:05:18 +01:00
Aadi Desai aab4b43cc7
Add logging to autoverification 2023-09-24 16:04:51 +01:00
Aadi Desai 655b6447b0
Add logging to commands 2023-09-24 16:03:21 +01:00
Aadi Desai d501512ff2
Add messages in AU_CH for autoverification
And logging when verified
2023-09-24 14:50:14 +01:00
Aadi Desai 3005c26096
Add general channel to config 2023-09-24 14:49:26 +01:00
Aadi Desai d1dd31a608
Missing line in previous commit 2023-09-24 02:01:08 +01:00