feat(discord): Added /balance {give,set} commands
- Also, you cannot /answer to unpublished quest - Also, changed /scoreboard to print name instead of mentioning - Also, made --config an option, defaulting to "cfg/config.toml"
This commit is contained in:
parent
99812c5d7c
commit
4ba57b925a
6 changed files with 111 additions and 10 deletions
|
|
@ -28,7 +28,9 @@ pub async fn answer(
|
|||
}
|
||||
|
||||
let quests = ctx.data().config.load_quests();
|
||||
let Some(quest) = quests.iter().find(|q| q.id == quest_id) else {
|
||||
let Some(quest) = quests.iter()
|
||||
.filter(|q| q.public)
|
||||
.find(|q| q.id == quest_id) else {
|
||||
return Err(Error::QuestNotFound(quest_id));
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue