forked from sorceress/rustcord
Rename urbandict function from 'what' to 'define'
This commit is contained in:
parent
768bc1549f
commit
b883a3aae6
|
@ -39,7 +39,7 @@ impl EventHandler for Handler {
|
||||||
#[group]
|
#[group]
|
||||||
#[commands(
|
#[commands(
|
||||||
init, ping, halt, list_srv, host, ship, bottom_rng, headpat, uwu, gayculator, waffle, sausage,
|
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;
|
struct General;
|
||||||
|
|
||||||
|
@ -542,7 +542,7 @@ fn compare_bot(ctx: &mut Context, message: &Message, mut args: Args) -> CommandR
|
||||||
|
|
||||||
#[command]
|
#[command]
|
||||||
#[aliases("what's this")]
|
#[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 text: String = args.rest().trim().to_string();
|
||||||
let defs = &urbandict::get_definitions(&text);
|
let defs = &urbandict::get_definitions(&text);
|
||||||
if !args.is_empty() {
|
if !args.is_empty() {
|
||||||
|
|
Loading…
Reference in New Issue