a2f0684509
Composed framework ( #43 )
...
Composed poise and serenity into a composed framework. This will help the migration towards slash-commands in the future.
2024-03-27 12:50:48 -04:00
1066f249b0
osu: Introduce Env
and propagate it to other functions ( #40 )
2024-03-17 17:21:13 +01:00
13683aa229
Reuse table_formatting
logic for almost everything ( #39 )
2024-03-10 05:01:44 +01:00
54426ed477
Move table_formatting
to prelude ( #38 )
2024-03-07 23:30:08 +01:00
d23c86fb99
Don't retry the members endpoint too much
2024-03-06 16:38:50 +01:00
01c743f866
Don't use dashmap when you need async updates [deadlocks xd]
2024-03-06 16:14:31 +01:00
a50f44ad90
Don't respond to the bot's pagination reaction
2024-03-05 22:18:08 +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
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
2a279e62e4
Require json feature of reqwest in prelude
2024-02-25 18:45:22 +00:00
4a1853532a
One round of cargo clippy
2024-02-25 18:45:22 +00:00
3f115eaab0
Update serenity and make prelude compile
2024-02-25 18:45:22 +00:00
5bb6161b36
explicitly cache member list
2024-02-17 19:17:38 +00:00
07928671e2
Implement user score
2024-02-17 19:17:38 +00:00
2f4a2c978d
use a guild member list for the member cache if possible
2024-02-13 15:02:01 +01:00
b5e8a24919
Remove reactions when youmu is no longer handling paginations
2024-02-11 17:34:46 +01:00
eee975092f
Add total pp rankings
2023-12-27 17:33:23 +01:00
aaf571f01b
Sleepy more osu api
2023-11-26 15:47:02 +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
8632f0e99c
Massive dependencies bump
2022-06-11 15:50:56 -04:00
ed440d0a69
Yuck import bug
2021-11-21 17:46:18 -05:00
2c2092eb91
Implement Flags parser and handle choose --everyone
...
- A generic Flags parser that could handle any `--flag` argument.
- `choose --everyone` overrides the Offline/DnD check.
2021-11-21 17:37:28 -05: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
901d55814d
Update to Tokio 1 and Serenity 0.10 ( #9 )
2021-01-15 18:50:33 +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
b8471152d3
Update to serenity 0.9.1
2020-11-22 23:56:37 -05:00
85ef689909
Update serenity to v0.9.0-rc.2
2020-10-08 17:47:48 +00:00
e46cce3cb6
prelude: remove ratelimit logs
2020-09-14 22:57:19 -04:00
0fd5379446
Send announcements not as part of scanning
2020-09-14 22:33:23 -04:00
12948ae99f
prelude: Implement ratelimit
2020-09-13 22:26:16 -04:00
238e44a64c
Prelude/Main: rework hook system
2020-09-07 19:41:59 -04:00
2ad04b34c9
Prelude: no more crossbeam/rayon
2020-09-07 02:37:14 -04: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
e2024b991a
Prelude: automatically import future/stream traits
2020-09-06 22:16:24 -04:00
bd5f4f0fd2
Prelude: export async_trait
2020-09-06 22:09:39 -04:00
c0df49277c
Prelude: Borrow data once!
2020-09-03 18:05:51 -04:00
ff2626b656
Rewrite setup
2020-09-03 17:56:02 -04:00
a8958a20f2
Remove ReactionWatcher (use serenity collector!) and simplify paginate
2020-09-03 17:55:19 -04:00
a578ce5924
Prelude: Announcer: full async rewrite
2020-09-02 19:32:46 -04:00
fe5cd8a58a
Prelude: args: use anyhow as Error/Result
2020-09-02 18:02:11 -04:00
82a3b5a548
Prelude: Support anyhow
2020-09-02 17:50:26 -04:00
9a98193d1f
Prelude: fix prelude group
2020-09-02 16:50:17 -04:00
0fefb455ea
Prelude: do away with GetCloned
2020-09-02 16:48:21 -04:00
2e718c3e60
Prelude: update to async
2020-09-02 16:48:06 -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
37556df3b7
Set up Github Actions ( #1 )
2020-06-27 22:32:44 -04:00