Added help messages

msg_refactor
Joey Hines 2022-03-10 19:48:42 -07:00
parent 23f5a86013
commit e4b98b7796
No known key found for this signature in database
GPG Key ID: 80F567B5C968F91B
1 changed files with 3 additions and 0 deletions

View File

@ -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();