Commit graph

52 commits

Author SHA1 Message Date
6458454ba9
Apply manual clippy 2024-08-04 22:47:43 +02:00
b9f6fa7fb8
Apply automatic clippy 2024-08-04 22:40:46 +02:00
64ff4b3ed8 Provide a way to give pagination functions a total page count 2024-06-20 02:15:29 +02: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
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
f57cd528f3 Formatting 2024-02-25 18:45:22 +00:00
4a1853532a One round of cargo clippy 2024-02-25 18:45:22 +00:00
08d639944e Update youmubot-core 2024-02-25 18:45:22 +00: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
1a499e782a
Quote and trim arguments in voting 2022-01-19 18:36:13 -05:00
9ac8683c5d
Improvements for voting
- Voting no longer tries to react all at once, creating unneeded congestion.
  This also has the added benefits of having the options laid out in order.
- Include relative timestamps in the embed and the result.
2022-01-19 18:23:37 -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
b9776bddde
Override the soft ban database into store on update 2021-10-23 14:49:26 -04:00
45425a4bc4
Formatting 2021-06-21 17:27:52 +09:00
6944ddfe75
Add update-role-message command 2021-06-21 17:25:37 +09:00
1799b70bc1
Move to SQLite (#13) 2021-06-19 22:36:17 +09:00
925aa90887 Add role messages 2021-02-17 05:12:49 +09:00
1ecfcc92d2 Extended role list 2021-02-17 05:12:49 +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
40f6c6e553
Fix formatting 2021-01-16 02:27:32 +09:00
0cbf74fb82
Allow multiple image outputs on !image/!nsfw 2021-01-16 02:25:47 +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
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
53f6286d3d
Core: put role over message in choose 2020-09-20 16:02:07 -04:00
e830eab3f2
Fix intents and so core/choose and core/role 2020-09-20 15:52:33 -04:00
2ce83a86dd
core: sort votes 2020-09-14 23:39:08 -04:00
f1719019d1
Core/Prelude: Fix lifetime unsoundness 2020-09-07 02:09:06 -04:00
5f08845d88
Core: asyncify choose and implement role filter 2020-09-06 22:51:20 -04:00
9975aa5880
Core: asyncify Votes 2020-09-06 22:33:48 -04:00
890cb21770
Core: asyncify Roles 2020-09-06 22:16:24 -04:00
256ed3fe7c
Core: use std::time::Duration 2020-09-06 22:16:24 -04:00
8f65f63f00
Core: asyncify Admin group 2020-09-06 22:16:24 -04:00
9e38f88e97
Core: asyncify fun commands 2020-09-05 21:21:36 -04:00
d607a0d701
Core: asyncify images 2020-09-05 21:21:16 -04:00
284b406dec
Core: simplify + asyncify soft_bans 2020-09-03 19:29:57 -04:00
cbfccedb1b
Core: updated serenity to async 2020-09-03 19:29:34 -04:00
bfd9d1c68d
Fix the emote/choice swap 2020-09-02 16:10:08 -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
5fc818b55e
Fix formatting 2020-05-25 11:19:43 -04:00
3e42c74c78
Reaction watcher with fixed duration 2020-05-25 11:15:21 -04:00
2b1567e616
Add example for role 2020-04-13 20:14:59 -04:00
feac1713c2
Tune how roles are parsed 2020-03-27 17:49:17 -04:00
5dd26d7474 Implement roles management (#18)
Fix formatting

Implement `roles` management

Add a 'roles' mod and DB
2020-03-27 21:22:15 +00:00
99c7888dfb y2!kick now actually kicks instead of ban (#17)
Fix formatting

y2!kick now actually kicks instead of ban
2020-03-27 21:21:56 +00:00
328bb44d23
Fix cargo fmt stuff 2020-02-13 18:51:22 -05:00
abb8611083
osu: play tables now show star difficulty 2020-02-12 19:07:34 -05:00