Commit graph

514 commits

Author SHA1 Message Date
98278de2f3
Rework how fetching recent activity works
User requests will be faster since it no longer concerns recent activity.
Announcer will also be faster: we only fetch recent activity once.
2025-05-20 19:14:10 +02:00
8bb8b4114a
Add helpful packages to flake 2025-05-20 19:14:06 +02:00
4b1ae32256
Add script to fetch osu! API token 2025-05-20 18:10:15 +02:00
a4ac2b9e2c
Another round of manual linting
Some checks failed
Build and Test / Format check (push) Has been cancelled
Build and Test / Lint (push) Has been cancelled
Build and Test / Test (push) Has been cancelled
Build and Test / Check dependency hash (push) Has been cancelled
Build and Test / Build (push) Has been cancelled
2025-05-13 00:58:28 +02:00
c5f46dd7fe
Cargo clippy & format 2025-05-13 00:47:18 +02:00
cdd85dae71
nix: clean source in input 2025-05-13 00:43:34 +02:00
97e1fb3339
Update rust-toolchain in CI 2025-05-13 00:28:55 +02:00
87e0a02e1f
Implement lazy score queries for top, recent and check (#71)
* Use streams and such to have 200 results

* WIP

* display should take a lazy score future

* Introduce a Scores stream so we can lazily load top score requests

* Fit range to len

* Remove debugging

* Simplify from_user with `and_then`
2025-05-13 00:24:20 +02:00
8fdd576eb9
Grab .olz for map hooks too
Some checks failed
Build and Test / Format check (push) Has been cancelled
Build and Test / Lint (push) Has been cancelled
Build and Test / Test (push) Has been cancelled
Build and Test / Check dependency hash (push) Has been cancelled
Build and Test / Build (push) Has been cancelled
2025-05-04 02:15:10 +02:00
dependabot[bot]
c4fccbcc4c
Bump crossbeam-channel from 0.5.14 to 0.5.15 (#70)
Some checks failed
Build and Test / Format check (push) Has been cancelled
Build and Test / Lint (push) Has been cancelled
Build and Test / Test (push) Has been cancelled
Build and Test / Check dependency hash (push) Has been cancelled
Build and Test / Build (push) Has been cancelled
Bumps [crossbeam-channel](https://github.com/crossbeam-rs/crossbeam) from 0.5.14 to 0.5.15.
- [Release notes](https://github.com/crossbeam-rs/crossbeam/releases)
- [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md)
- [Commits](https://github.com/crossbeam-rs/crossbeam/compare/crossbeam-channel-0.5.14...crossbeam-channel-0.5.15)

---
updated-dependencies:
- dependency-name: crossbeam-channel
  dependency-version: 0.5.15
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-11 01:47:04 +02:00
dependabot[bot]
3190083103
Bump openssl from 0.10.71 to 0.10.72 (#68)
Some checks failed
Build and Test / Format check (push) Has been cancelled
Build and Test / Lint (push) Has been cancelled
Build and Test / Test (push) Has been cancelled
Build and Test / Check dependency hash (push) Has been cancelled
Build and Test / Build (push) Has been cancelled
2025-04-08 07:14:16 +02:00
dependabot[bot]
f3b934cd9d
Bump tokio from 1.44.1 to 1.44.2 (#69) 2025-04-08 07:12:25 +02:00
Unknown
bcd879dd55
Bump thiserror to version 2 (#66)
Some checks failed
Build and Test / Format check (push) Has been cancelled
Build and Test / Lint (push) Has been cancelled
Build and Test / Test (push) Has been cancelled
Build and Test / Check dependency hash (push) Has been cancelled
Build and Test / Build (push) Has been cancelled
2025-04-02 16:33:32 +02:00
t41y0u
1ecbb5d0f5
Update dependencies (#67)
Some checks are pending
Build and Test / Format check (push) Waiting to run
Build and Test / Lint (push) Waiting to run
Build and Test / Test (push) Waiting to run
Build and Test / Check dependency hash (push) Waiting to run
Build and Test / Build (push) Waiting to run
* Update rust version and dependencies

* Update nix Rust dependencies hash outputs

* Update nixpkgs and friends

---------

Co-authored-by: Natsu Kagami <nki@nkagami.me>
2025-04-01 13:22:08 +00:00
Unknown
e07949378c
Migrate from crane back to buildRustPackage
Some checks are pending
Build and Test / Format check (push) Waiting to run
Build and Test / Lint (push) Waiting to run
Build and Test / Test (push) Waiting to run
Build and Test / Check dependency hash (push) Waiting to run
Build and Test / Build (push) Waiting to run
2025-03-31 16:13:51 +02:00
t41y0u
c148dca438 osu: fix check command mods filters 2025-03-31 14:14:33 +02:00
t41y0u
7399008414 osu: fix beatmap links regex for link parser 2025-03-31 14:14:33 +02:00
a146883620
core: Remove soft ban (#64)
Some checks failed
Build and Test / Format check (push) Has been cancelled
Build and Test / Lint (push) Has been cancelled
Build and Test / Test (push) Has been cancelled
Build and Test / Build (push) Has been cancelled
Since Discord implemented silence, soft bans are not really used.
2025-03-29 17:06:20 +01:00
dependabot[bot]
79b17414c5
Bump ring from 0.17.7 to 0.17.14 (#63)
Bumps [ring](https://github.com/briansmith/ring) from 0.17.7 to 0.17.14.
- [Changelog](https://github.com/briansmith/ring/blob/main/RELEASES.md)
- [Commits](https://github.com/briansmith/ring/commits)

---
updated-dependencies:
- dependency-name: ring
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-29 16:55:20 +01:00
dependabot[bot]
2271b0a057
Bump openssl from 0.10.66 to 0.10.71 (#62)
Bumps [openssl](https://github.com/sfackler/rust-openssl) from 0.10.66 to 0.10.71.
- [Release notes](https://github.com/sfackler/rust-openssl/releases)
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.66...openssl-v0.10.71)

---
updated-dependencies:
- dependency-name: openssl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-29 16:54:51 +01:00
c8e2d84568
Update README for sqlx related commands 2025-03-29 16:54:02 +01:00
t41y0u
1a29bc095c Use TOML format for rust-toolchain
Some checks are pending
Build and Test / Format check (push) Waiting to run
Build and Test / Lint (push) Waiting to run
Build and Test / Test (push) Waiting to run
Build and Test / Build (push) Waiting to run
2025-03-28 16:37:40 +01:00
7c0cbea716
ignore command (#59)
Some checks are pending
Build and Test / Format check (push) Waiting to run
Build and Test / Lint (push) Waiting to run
Build and Test / Test (push) Waiting to run
Build and Test / Build (push) Waiting to run
* New table `ignored_users` and queries

* Update sqlx to 0.8

* Implement `ignore` command and add needed hooks
2025-03-27 15:13:00 +01:00
a36fa87964
osu: Allow returning a full file instead when requesting a table check/leaderboard 2025-03-10 15:51:52 +01:00
ed15406f51
Do rendering only once without pagination buttons, if there is only one page to display 2025-03-10 15:02:16 +01:00
f995852a12
osu: don't show oppai-rs attribution if no scores need it 2025-02-25 16:16:53 +01:00
e246eb80e2
osu: limit minigame rank announcement to only top 50 2025-02-25 16:05:00 +01:00
487f8647ba
osu: add passes_only flag to recent command 2025-02-25 15:58:11 +01:00
068dd48550 osu: make save command use interaction 2025-02-22 17:43:53 +01:00
e777d4d634 interaction_collector: rename from Paginator, implement Guard, is now generic 2025-02-22 17:43:53 +01:00
a35563801d
pagination: make editing generic over a CanEdit interface 2025-02-20 22:54:38 +01:00
5fde2f343a
pagination: Directly pass list of interactions to render 2025-02-20 20:07:17 +01:00
8c5135bfc9
Remove loading reactions 2025-02-20 19:46:13 +01:00
d1f3aa5fa9
Change pagination to use interactions instead of reactions 2025-02-20 19:34:14 +01:00
460624c7fe Add beatmapset option to leaderboard command 2025-02-20 18:19:00 +01:00
b302bd3ce1 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:19:00 +01:00
60a72dad85 Just stop the warnings T_T 2025-02-20 18:19:00 +01:00
84b152adf6 osu: add /s/{id} links to the link parser, support beatmapsets with mode override 2025-02-20 18:19:00 +01:00
c28cad0718 osu: small redundancy cleanups 2025-02-20 18:19:00 +01:00
a5fd4f4eab Check matching mod when saving 2025-02-20 18:19:00 +01:00
428ca8861f Keep header in rankings 2025-02-20 18:19:00 +01:00
16cd0fc72a Revert score per page to 5 2025-02-20 18:19:00 +01:00
fd9f3a507d Explicitly install osu as all contexts 2025-02-20 18:19:00 +01:00
aa2ee0cc86 Use latest poise and serenity
Fuck warnings lol
2025-02-20 18:19:00 +01:00
da22b71f55 Set substituters to extra in flake 2025-02-20 18:19:00 +01:00
03e37fbebc Add clear_cache command 2025-02-20 18:19:00 +01:00
ba74465ca7 Add leaderboard command 2025-02-20 18:19:00 +01:00
5d9fda682e Add ranks command 2025-02-20 18:19:00 +01:00
3f9db46032 Add check command 2025-02-20 18:19:00 +01:00
0db52c5c2b Allow beatmap command to use just numbers as id 2025-02-20 18:19:00 +01:00