Set up simple command for osu

This commit is contained in:
Natsu Kagami 2024-12-31 01:18:22 +01:00 committed by Natsu Kagami
parent 125bad04da
commit 2cdff76837
5 changed files with 37 additions and 1 deletions

View file

@ -0,0 +1,16 @@
use super::*;
use youmubot_prelude::*;
/// osu!-related command group.
#[poise::command(slash_command, subcommands("top"))]
pub async fn osu<U: HasOsuEnv>(_ctx: CmdContext<'_, U>) -> Result<()> {
Ok(())
}
/// Returns top plays for a given player.
///
/// If no osu! username is given, defaults to the currently registered user.
#[poise::command(slash_command)]
async fn top<U: HasOsuEnv>(ctx: CmdContext<'_, U>, username: Option<String>) -> Result<()> {
todo!()
}