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:
Alexey 2025-12-15 13:26:37 +03:00
commit 4ba57b925a
6 changed files with 111 additions and 10 deletions

View file

@ -39,7 +39,9 @@ fn make_quest_message_content(quest: &Quest) -> String {
#[poise::command(
prefix_command,
slash_command,
guild_only,
subcommands("list", "create", "update", "publish", "delete"),
required_permissions = "ADMINISTRATOR",
)]
pub async fn quest(
_ctx: Context<'_>,
@ -50,6 +52,8 @@ pub async fn quest(
#[poise::command(
prefix_command,
slash_command,
guild_only,
required_permissions = "ADMINISTRATOR",
)]
pub async fn list(
ctx: Context<'_>,