added new config option, refactored other code

This commit is contained in:
2025-06-05 23:32:33 +02:00
parent 7922bc50a9
commit 71da587242
6 changed files with 61 additions and 44 deletions
+2 -7
View File
@@ -1,8 +1,7 @@
use poise::Command;
use std::{collections::HashMap, error::Error as StdErr};
use std::collections::HashMap;
use tokio::fs;
use crate::{lang, messages::send_msg, Context, Data, Error};
use crate::{lang, messages::send_msg, Context, Cmd, Error};
#[derive(poise::ChoiceParameter, PartialEq)]
@@ -15,10 +14,6 @@ enum HelpOptions {
}
type Cmd = Command<Data, Box<dyn StdErr + Send + Sync>>;
#[poise::command(
slash_command,
prefix_command,