Commit graph

75 commits

Author SHA1 Message Date
Aadi Desai a5392151b0
Update deps, shuttle v0.46.0 2024-07-07 12:17:44 +01:00
Aadi Desai 913d5d53fe
Update deps, shuttle v0.43.0 2024-04-12 16:52:21 +01:00
Aadi Desai 72d2881671
Update deps, shuttle v0.39.0 2024-02-29 11:22:50 +00:00
Aadi Desai ddf6b00a8c
Lowercase shortcode when inserting to db 2024-02-10 22:04:03 +00:00
Aadi Desai 076dd9e0f9
Update to shuttle v0.38.0 + deps 2024-02-02 17:14:46 +00:00
Aadi Desai 2df0ba37d1
Remove db call and unwrap by returning added Member 2024-02-02 16:56:46 +00:00
Aadi Desai e8502feb74
Replace per-use crate:: with per-file use crate:: 2024-02-02 16:53:48 +00:00
Aadi Desai ba2c820d81
Remove redundant avatar_url code 2024-02-01 23:25:53 +00:00
Aadi Desai fbd6b14b79
Add /nick cmd for members to update nickname 2024-01-29 16:40:21 +00:00
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