mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-24 01:00:49 +00:00
Set up simple command for osu
This commit is contained in:
parent
125bad04da
commit
2cdff76837
5 changed files with 37 additions and 1 deletions
16
youmubot-osu/src/discord/commands.rs
Normal file
16
youmubot-osu/src/discord/commands.rs
Normal 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!()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue