mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-19 16:58:55 +00:00
Use multiple aliases
This commit is contained in:
parent
a19bc501cb
commit
06cbc51c0e
1 changed files with 5 additions and 1 deletions
|
@ -172,7 +172,11 @@ async fn setup_framework(token: &str) -> StandardFramework {
|
||||||
let fw = StandardFramework::new()
|
let fw = StandardFramework::new()
|
||||||
.configure(|c| {
|
.configure(|c| {
|
||||||
c.with_whitespace(false)
|
c.with_whitespace(false)
|
||||||
.prefix(&var("PREFIX").unwrap_or_else(|_| "y!".to_owned()))
|
.prefixes(
|
||||||
|
var("PREFIX")
|
||||||
|
.map(|v| v.split(",").map(|v| v.trim().to_owned()).collect())
|
||||||
|
.unwrap_or_else(|_| vec!["y!".to_owned(), "y2!".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