Commit graph

63 commits

Author SHA1 Message Date
4ba64a466d
Add weighted map length to profile 2024-03-06 16:33:22 +01:00
11f32ccf04
osu: Implement map length on server ranks 2024-03-06 00:01:38 +01:00
d158d4015e
osu: Forget about mods when querying a beatmap for check 2024-02-29 14:23:06 +01:00
b4cf6ce94f
Fix User/Role/Channel id parsing (#35)
* Import thiserror to make nicer errors

* Create wrappers for id that exposes old parsing behavior (from mentions)

* Use id wrappers when parsing parameters
2024-02-28 18:02:42 +00:00
4a1853532a One round of cargo clippy 2024-02-25 18:45:22 +00:00
0460e800e5 Update youmubot-osu 2024-02-25 18:45:22 +00:00
1125cac2a8
Manually fix the rest of the lints 2024-02-17 20:37:43 +01:00
508cf52e6f
Apply cargo-clippy fixes 2024-02-17 20:20:41 +01:00
c2562fbbca Simplify lb 2024-02-17 19:17:38 +00:00
fef6516ae1 Remove old reqwest osu api v1 2024-02-17 19:17:38 +00:00
f5cc201f1c Implement user api from rosu 2024-02-17 19:17:38 +00:00
b5013b9899 Add cache clear command 2024-02-17 19:17:38 +00:00
8febf0106e Construct rosu api 2024-02-17 19:17:38 +00:00
30f186c604
Use the user's own top scores for saving checks 2024-02-05 01:44:44 +01:00
d20dbad1b8
New experimental osu save feature 2024-02-05 01:19:13 +01:00
f7ea23ed3b
Store osu! user username 2024-02-04 23:24:28 +01:00
125bc3bd61
Use separate osu clients for announcer 2023-12-27 17:48:36 +01:00
220dbc21ea
Patches to get deadlocking in osu updates fixed 2023-11-21 14:55:00 +01:00
54502ad61b
Massive lint fix 2023-10-22 17:45:13 +02:00
17e59e7135
Enable pp calculation for all modes 2023-10-22 17:19:32 +02:00
59551f1f6a
Fix osu commands with replies 2023-02-17 14:02:42 +01:00
556ada2b9d
osu: Make c/last/lb sensitive to replied-to messages 2022-11-05 16:37:17 +01:00
2e3c6f61be
Pull info from an attached .osu/.osz file (#18) 2022-04-29 19:31:04 -04:00
51db72acb2
Temporarily move to rosu 2022-02-09 15:20:36 -05:00
a1975d5b54
Simplify some of the osu commands 2022-02-01 16:31:33 -05:00
a19bc501cb
Add more shortcuts to osu commands 2021-07-18 16:11:29 +09:00
2feb91ac00
Misc improvements to osu! (#15)
* Use len() as hint for pagination

* Implement len for beatmapset paging

* More tweaks for pagination

* Move table rendering to display mod

* Use grid throughout the commands

* No more double user update

* Sort by PP by default

* Filter check by mod

* Filter lb by mod

* Improve 1-page cases
2021-06-19 22:54:08 +09:00
1799b70bc1
Move to SQLite (#13) 2021-06-19 22:36:17 +09:00
abc0fc5f73 Save on not calculating pp in beatmap info 2021-02-17 05:12:49 +09:00
35634550dd Show fail percent 2021-02-17 05:12:49 +09:00
e2766cd782 Handle failures and record chewing 2021-02-17 05:12:49 +09:00
3a89c009da
Use more accurate accuracy from 100s and 50s 2021-02-04 16:31:43 +09:00
bd845d9662
More osu improvements (#11)
* Don't show DT when NC is on

* Allow leading + in mods parsing

* Extend Pagination

* Implement beatmapset display

* Move OkPrint to prelude

* Beatmapset display seems to work

* Put reaction handler into static

* Make clippy happy

* Add beatmapset caching and last --set

* Delay loading of beatmap info

* Simplify hook link handling

* Replies everywhere!

* Replies everywhereee!
2021-02-01 17:13:40 +00:00
f05afb2b80
Improve osu (#10)
* Add rank event parsing

* Refactor osu announcer

* Increase api limits

* Register user is locked
2021-01-22 12:54:01 +00:00
145cb01bd0
Split user and announcer osu clients 2021-01-22 14:08:15 +09:00
6bf2779d61
osu updatelb command (#8)
* Make `paginate` take a Paginate trait impl, while `paginate_fn` takes a function

* Add `updatelb` command

* Implement a member cache

* Update member queries to use member cache

* Allow everyone to updatelb
2020-11-23 07:26:18 +00:00
bc888e816b
Merge remote-tracking branch 'origin/master' into async-youmu 2020-09-13 23:28:16 -04:00
ce0349859c
osu: Server leaderboard command (#6)
* New db stores user best by beatmap id

* `check` command saves into the database

* Add leaderboard command

* Update youmubot-osu/src/discord/server_rank.rs

Swap ordering
2020-09-13 00:55:36 -04:00
cf7eb60195
osu: add loading indicator 2020-09-08 00:00:06 -04:00
acc1b92002
osu: Optimize top! and hook 2020-09-07 20:07:41 -04:00
238e44a64c
Prelude/Main: rework hook system 2020-09-07 19:41:59 -04:00
b776a1d26e
osu: Fix commands 2020-09-07 19:01:21 -04:00
c6e8bfc43e
Lots of tweaks to the osu! embeds (#4)
* Simplify beatmap embed information

* Shrink embeds!!

* Put ranked status on information

* Paint the user embed!

* Add gained pp

* Use more carefully crafted hooks

* 'JSformat' the bpm float
2020-08-10 03:37:11 +00:00
10ba2dda1d
Overhaul reaction handler to a thread spawning model (#2)
* Overhaul reaction handler to a thread spawning model

* Remove limits for mods on voting and community buckets
2020-07-06 13:26:34 -04:00
cfd848767d
Match more osu! play mode strings 2020-06-14 21:45:16 -04:00
cafa65581c
Add short link references in embeds 2020-06-14 21:43:13 -04:00
eba1bb324c
Handle score_embed 2020-06-14 19:51:26 -04:00
cbb1e14d93
Implement predicted pp 2020-06-14 00:10:07 -04:00
00971d7d3e
Implement beatmap metadata caching 2020-06-13 23:29:13 -04:00
20571d35de
Show actual stars for oppai-enabled maps 2020-06-13 22:19:05 -04:00