Implement server ranks command

This commit is contained in:
Natsu Kagami 2020-02-08 13:55:05 -05:00
parent 33c6aae64d
commit 3b24c1ec09
Signed by: nki
GPG key ID: 73376E117CD20735
2 changed files with 74 additions and 1 deletions

View file

@ -19,12 +19,14 @@ mod cache;
mod db;
pub(crate) mod embeds;
mod hook;
mod server_rank;
pub use announcer::OsuAnnouncer;
use db::OsuUser;
use db::{OsuLastBeatmap, OsuSavedUsers};
use embeds::{beatmap_embed, score_embed, user_embed};
pub use hook::hook;
use server_rank::SERVER_RANK_COMMAND;
/// The osu! client.
pub(crate) struct OsuClient;
@ -68,7 +70,7 @@ pub fn setup(
#[group]
#[prefix = "osu"]
#[description = "osu! related commands."]
#[commands(std, taiko, catch, mania, save, recent, last, check, top)]
#[commands(std, taiko, catch, mania, save, recent, last, check, top, server_rank)]
struct Osu;
#[command]