Commit graph

24 commits

Author SHA1 Message Date
d1f3aa5fa9
Change pagination to use interactions instead of reactions 2025-02-20 19:34:14 +01: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
6458454ba9
Apply manual clippy 2024-08-04 22:47:43 +02:00
32053c3fe3
osu: Implement check button! 2024-07-14 00:48:09 +02:00
64ff4b3ed8 Provide a way to give pagination functions a total page count 2024-06-20 02:15:29 +02:00
a50f44ad90
Don't respond to the bot's pagination reaction 2024-03-05 22:18:08 +01:00
431f295b41 Pagination: just delete our own reaction as fallback
... happens if we don't have message management permissions.
We definitely don't want to vomit errors to the user.
2024-02-25 18:45:22 +00:00
3f115eaab0 Update serenity and make prelude compile 2024-02-25 18:45:22 +00:00
b5e8a24919
Remove reactions when youmu is no longer handling paginations 2024-02-11 17:34:46 +01:00
54502ad61b
Massive lint fix 2023-10-22 17:45:13 +02:00
8632f0e99c
Massive dependencies bump 2022-06-11 15:50:56 -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
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
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
f1719019d1
Core/Prelude: Fix lifetime unsoundness 2020-09-07 02:09:06 -04:00
b5424c0087
Prelude: pagination takes a &mut Message 2020-09-06 22:16:24 -04:00
a8958a20f2
Remove ReactionWatcher (use serenity collector!) and simplify paginate 2020-09-03 17:55:19 -04: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
90be66b950
Relax Pagination to &mut self 2020-02-10 19:09:23 -05:00
5ae8ca5f0e
Signal on the end of pagination handler cycle 2020-02-09 15:08:25 -05:00
290e6229a8
Fix a bug where Pager listens to all reactions from all messages 2020-02-08 14:38:16 -05:00
33c6aae64d
Tune Pagination to be less buggy and more friendly 2020-02-08 13:54:56 -05:00
2913d92682
Implement Pagination 2020-02-07 13:06:09 -05:00