From 480fc9b1a0fad81a68d774ac477985f98fd22315 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Sat, 2 Mar 2024 21:45:43 +0000 Subject: [PATCH] feat: make the command more unique/descriptive --- README.md | 2 +- src/commands/link_email.rs | 6 +++--- src/main.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1a5cf24..ec022b6 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ This is for the user side of things ### User is an active member on wolves #### If they have never used the bot before or need to change their email: -* ``/link`` and enter their email that is in the Contact Email here: +* ``/link_wolves`` and enter their email that is in the Contact Email here: * An email will be sent to them that they need to verify * Once verified they will be given both roles diff --git a/src/commands/link_email.rs b/src/commands/link_email.rs index 206dae0..e109525 100644 --- a/src/commands/link_email.rs +++ b/src/commands/link_email.rs @@ -248,11 +248,11 @@ pub(crate) mod verify { }; let db = db_lock.read().await; - // check if user has used /link + // check if user has used /link_wolves let details = if let Some(x) = get_verify_from_db(&db, &command.user.id).await { x } else { - return "Please use /link first".to_string(); + return "Please use /link_wolves first".to_string(); }; let option = command @@ -286,7 +286,7 @@ pub(crate) mod verify { } Err(e) => { println!("{:?}", e); - "Failed to save, please try /link again".to_string() + "Failed to save, please try /link_wolves again".to_string() } }; } diff --git a/src/main.rs b/src/main.rs index e7a8655..0aac5b9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -77,7 +77,7 @@ impl EventHandler for Handler { let content = match command.data.name.as_str() { "add" => commands::add_server::run(&command, &ctx).await, - "link" => commands::link_email::link::run(&command, &ctx).await, + "link_wolves" => commands::link_email::link::run(&command, &ctx).await, "verify" => commands::link_email::verify::run(&command, &ctx).await, _ => "not implemented :(".to_string(), };