Rename urbandict function from 'what' to 'define'

This commit is contained in:
Agatha 2020-04-11 02:58:14 +03:00
parent 60ed51c295
commit 7f91346eaf
1 changed files with 2 additions and 2 deletions

View File

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