feat: make the command more unique/descriptive
This commit is contained in:
parent
4bd23e7638
commit
480fc9b1a0
3 changed files with 5 additions and 5 deletions
|
@ -23,7 +23,7 @@ This is for the user side of things
|
||||||
### User is an active member on wolves
|
### User is an active member on wolves
|
||||||
|
|
||||||
#### If they have never used the bot before or need to change their email:
|
#### 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: <https://ulwolves.ie/memberships/profile>
|
* ``/link_wolves`` and enter their email that is in the Contact Email here: <https://ulwolves.ie/memberships/profile>
|
||||||
* An email will be sent to them that they need to verify
|
* An email will be sent to them that they need to verify
|
||||||
* Once verified they will be given both roles
|
* Once verified they will be given both roles
|
||||||
|
|
||||||
|
|
|
@ -248,11 +248,11 @@ pub(crate) mod verify {
|
||||||
};
|
};
|
||||||
let db = db_lock.read().await;
|
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 {
|
let details = if let Some(x) = get_verify_from_db(&db, &command.user.id).await {
|
||||||
x
|
x
|
||||||
} else {
|
} else {
|
||||||
return "Please use /link first".to_string();
|
return "Please use /link_wolves first".to_string();
|
||||||
};
|
};
|
||||||
|
|
||||||
let option = command
|
let option = command
|
||||||
|
@ -286,7 +286,7 @@ pub(crate) mod verify {
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
println!("{:?}", e);
|
println!("{:?}", e);
|
||||||
"Failed to save, please try /link again".to_string()
|
"Failed to save, please try /link_wolves again".to_string()
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,7 +77,7 @@ impl EventHandler for Handler {
|
||||||
|
|
||||||
let content = match command.data.name.as_str() {
|
let content = match command.data.name.as_str() {
|
||||||
"add" => commands::add_server::run(&command, &ctx).await,
|
"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,
|
"verify" => commands::link_email::verify::run(&command, &ctx).await,
|
||||||
_ => "not implemented :(".to_string(),
|
_ => "not implemented :(".to_string(),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue