Added help messages
parent
23f5a86013
commit
e4b98b7796
|
@ -297,6 +297,7 @@ struct Player;
|
|||
|
||||
#[command]
|
||||
#[only_in(guilds)]
|
||||
#[description = "Vote another subject for termination. $vote <code_name>"]
|
||||
async fn vote(ctx: &Context, msg: &Message, args: Args) -> CommandResult {
|
||||
let mut data = ctx.data.write().await;
|
||||
let global_data = data.get_mut::<GlobalData>().unwrap();
|
||||
|
@ -360,6 +361,7 @@ async fn vote(ctx: &Context, msg: &Message, args: Args) -> CommandResult {
|
|||
|
||||
#[command]
|
||||
#[only_in(guilds)]
|
||||
#[description = "Get the game status. $status"]
|
||||
async fn status(ctx: &Context, msg: &Message, _args: Args) -> CommandResult {
|
||||
let data = ctx.data.read().await;
|
||||
let global_data = data.get::<GlobalData>().unwrap();
|
||||
|
@ -393,6 +395,7 @@ async fn status(ctx: &Context, msg: &Message, _args: Args) -> CommandResult {
|
|||
|
||||
#[command]
|
||||
#[only_in(guilds)]
|
||||
#[description = "Get the other players in the game. $status"]
|
||||
async fn players(ctx: &Context, msg: &Message, _args: Args) -> CommandResult {
|
||||
let data = ctx.data.read().await;
|
||||
let global_data = data.get::<GlobalData>().unwrap();
|
||||
|
|
Loading…
Reference in New Issue