Commit graph

48 commits

Author SHA1 Message Date
4a2f81c3d3
osu: [Big!] rework load_beatmap so that it can retrieve beatmapsets
Also
- scoreboard can handle beatmapsets now
- "when" column is included
- beatmapWithMode's mode field is now optional
2025-02-20 18:07:56 +01:00
cd0e3be0ef
Add beatmap command 2024-12-31 05:14:54 +01:00
51fa34a7bf
osu: Some lazer-related stat reconsideration (#56)
* Split lazer property to its own toggle

* Use lazer stats from API more verbatim in pp calculation

* Update CI to use 1.83

* Set rust-toolchain
2024-12-21 23:05:15 +00:00
803d718c7a
osu: implement beatmapset and simulate button (#55)
* Prepare a message beforehand for display_beatmapset

* Implement a Beatmapset button

* Always sort top plays by pp

* Show leaderboard for top pp per user/mod only

* Add score simulation

* Store all reaction to be removed later

* Properly handle errors

* Parse beatmap to get placeholders for modal

* Make buttons same color
2024-11-04 17:23:00 +00:00
7d490774e0
osu: make commands aware of user's preferred mode (#54)
* Add preferred_mode to sql database

* Update username and preferred mode

* Make commands aware of preferred mode

* Fetch user extras to display information

* Show user information on forcesave
2024-10-31 13:04:08 +00:00
6fbae89dfe
osu: Implement pins (#53)
Also format recent so attempt count is displayed
2024-10-12 15:07:56 +00:00
735b382102
Drop old homegrown Mods for rosu_v2::Mods, implement rate change support (#52)
* Move mods to intermode wrapper

* Update rust to 1.79

* Move mods from homebrewed impl to rosu

* Display mod details

* Take clock-rate into account when calculating pp

* Allow specifying rate in mods input

* Formatting

* Fix clippy
2024-08-24 21:21:01 +00:00
8e90006eb9 Add map_age display in ranks and user card 2024-08-04 20:39:57 +00:00
8e7b2b75e8
Some neater formatting for links 2024-06-20 16:55:09 +02:00
ffb7b233ab
Update alternate download links 2024-06-20 16:38:45 +02:00
00b8c9e145
Add link to score details and replay 2024-06-20 16:38:35 +02:00
7f15a4698a Implement a score hook 2024-06-20 02:39:57 +02:00
0e72f12b6d Allow more flexible inputs in embeds 2024-06-20 02:39:57 +02:00
e9a6e55569 Reformat uploaded beatmap embed and send background 2024-06-20 02:15:29 +02:00
0b111d5b26 Update to rosu-pp 1.0 2024-06-20 02:15:29 +02:00
4ba64a466d
Add weighted map length to profile 2024-03-06 16:33:22 +01: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
46684a2a9e Display scores smartly based on classic/lazer 2024-02-17 19:17:38 +00:00
51a2054385
Improve formatting slightly 2024-02-12 15:11:58 +01:00
fdae8be75b
Improve formatting slightly 2024-02-11 17:57:26 +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
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
68da7c3f4d
Aesthetics change to embeds
- Beatmap drain time now shown in shorten state
- Play embed uses thumbnail instead of image
- User top play now show full stats
2022-01-19 17:57:36 -05:00
cf831fae87
osu! best minor fixes (#16)
- Bump serenity version
- Now no longer pings unless the play is within top 100
- Parse numbers in bold as well
- Use relative time syntax in embeds
2021-10-23 14:33:32 -04: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
3a89c009da
Use more accurate accuracy from 100s and 50s 2021-02-04 16:31:43 +09: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
8d4c3e01d8
Sort by score and oppai pp 2020-12-01 03:56:14 -05:00
d57c02ddf5
top_record is 1-indexed... 2020-08-10 00:06:48 -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
264272c9cf
Tweak pp if-fc (again...) 2020-06-18 14:35:09 -04:00
1c59873a8f
Tweak pp if-fc 2020-06-18 14:23:55 -04:00
fde913ebc4
Add bpm to beatmap quick information 2020-06-18 14:19:43 -04:00
cafa65581c
Add short link references in embeds 2020-06-14 21:43:13 -04:00
5656d96ce1
Re-format score embed 2020-06-14 20:03:42 -04:00
eba1bb324c
Handle score_embed 2020-06-14 19:51:26 -04:00
33f19dbaba
Handle cs/od/ar/hp with mods 2020-06-14 18:44:06 -04:00
c43f9067b8
Hooks and last works 2020-06-12 02:44:56 -04:00
e13b508c22
Fix formatting 2020-04-02 12:42:00 -04:00
4069270213 Use mapset ID for download links (#19)
Beatmapset download links use beatmapset ID

Beatmap download links use beatmapset ID
2020-04-02 16:39:35 +00:00
ac4e60c596
Show beatmapset link as a bracketed anchor 2020-02-06 11:55:39 -05:00
aec9cd130d Split youmubot-osu 2020-02-05 17:25:34 -05:00
Renamed from youmubot/src/commands/osu/embeds.rs (Browse further)