mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-18 16:28:55 +00:00
Optional prefix
This commit is contained in:
parent
c4ce365555
commit
ed8346abb9
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ fn setup_framework(client: &Client) -> StandardFramework {
|
||||||
let fw = StandardFramework::new()
|
let fw = StandardFramework::new()
|
||||||
.configure(|c| {
|
.configure(|c| {
|
||||||
c.with_whitespace(false)
|
c.with_whitespace(false)
|
||||||
.prefix("y!")
|
.prefix(&var("PREFIX").unwrap_or("y!".to_owned()))
|
||||||
.delimiters(vec![" / ", "/ ", " /", "/"])
|
.delimiters(vec![" / ", "/ ", " /", "/"])
|
||||||
.owners([owner.id].iter().cloned().collect())
|
.owners([owner.id].iter().cloned().collect())
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue