From b883a3aae648039723cc244bae1447b3411ce12c Mon Sep 17 00:00:00 2001 From: Agatha Date: Sat, 11 Apr 2020 02:58:14 +0300 Subject: [PATCH] Rename urbandict function from 'what' to 'define' --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 891db6e..a6c68ec 100755 --- a/src/main.rs +++ b/src/main.rs @@ -39,7 +39,7 @@ impl EventHandler for Handler { #[group] #[commands( init, ping, halt, list_srv, host, ship, bottom_rng, headpat, uwu, gayculator, waffle, sausage, - help, embed, what, owo, info + help, embed, define, owo, info )] struct General; @@ -542,7 +542,7 @@ fn compare_bot(ctx: &mut Context, message: &Message, mut args: Args) -> CommandR #[command] #[aliases("what's this")] -fn what(ctx: &mut Context, message: &Message, args: Args) -> CommandResult { +fn define(ctx: &mut Context, message: &Message, args: Args) -> CommandResult { let text: String = args.rest().trim().to_string(); let defs = &urbandict::get_definitions(&text); if !args.is_empty() {