From ed8346abb909e044981ae8ef33a96aa907df820f Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Wed, 5 Feb 2020 18:49:28 -0500 Subject: [PATCH] Optional prefix --- youmubot/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youmubot/src/main.rs b/youmubot/src/main.rs index fb26363..54e765b 100644 --- a/youmubot/src/main.rs +++ b/youmubot/src/main.rs @@ -95,7 +95,7 @@ fn setup_framework(client: &Client) -> StandardFramework { let fw = StandardFramework::new() .configure(|c| { c.with_whitespace(false) - .prefix("y!") + .prefix(&var("PREFIX").unwrap_or("y!".to_owned())) .delimiters(vec![" / ", "/ ", " /", "/"]) .owners([owner.id].iter().cloned().collect()) })