Time simplification
This commit is contained in:
parent
e6d48ab0a7
commit
cc3aec0b9f
|
@ -107,7 +107,7 @@ async fn main() {
|
|||
async fn name(ctx: &Context, msg: &Message) -> CommandResult {
|
||||
if let Some((_, name)) = msg.content.split_once(' ') {
|
||||
let (name, adjustment) = name.split_once(" -").unwrap_or((name, "0"));
|
||||
let adjustment = adjustment.strip_suffix("h").unwrap_or(adjustment);
|
||||
let adjustment = adjustment.trim_end_matches('h');
|
||||
msg.guild(&ctx)
|
||||
.await
|
||||
.unwrap()
|
||||
|
|
Loading…
Reference in New Issue
Block a user