Commit graph

52 commits

Author SHA1 Message Date
2be38a3759
Add a timeout to the reqwest client 2023-11-21 13:27:22 +01:00
67a7eb9aec
Various rewrite of the announcer 2023-11-16 01:29:14 +01:00
ea75818c99
Make youmu more noisy for debugging 2023-11-09 01:36:58 +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
5c270db9cb
Implement announcer tool 2020-06-14 20:36:15 -04:00
3e42c74c78
Reaction watcher with fixed duration 2020-05-25 11:15:21 -04:00
5d6e537ac2
Tune announcer performance 2020-02-11 19:44:10 -05:00
063c8baaa9
Create Duration from seconds u64 2020-02-11 19:33:05 -05:00
15232b1598
Reset the cooldown everytime there is an action 2020-02-10 19:09:37 -05:00
90be66b950
Relax Pagination to &mut self 2020-02-10 19:09:23 -05:00
3998617f97
Merge branch 'master' into codeforces 2020-02-09 17:37:10 -05:00
a448438c96
Implement announcer management commands 2020-02-09 17:34:09 -05:00
6879598dfc
Redesign Announcer trait 2020-02-09 16:45:48 -05:00
5ae8ca5f0e
Signal on the end of pagination handler cycle 2020-02-09 15:08:25 -05:00
adc33076f3
Generalize UsernameArg 2020-02-09 14:13:19 -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
472ebf9d2d
Make ReactionHandler handle even reaction removals 2020-02-06 20:26:19 -05:00
486bd6b88d
Implement ReactionHandler 2020-02-06 19:32:08 -05:00