Fix auto-selecting chat channel, add some more config options

This commit is contained in:
NG (Graham) committed 2025-08-13 22:17:24 -04:00
1 parent a8692b2839
commit 624fee6d72
20 files changed
+316 -55

No files matched your search

+13 -1
View File
@@ -7,6 +7,10 @@ pub struct ChatConfig {
#[serde(default = "default_command_chann")]
pub command_channel: String,
pub commands: Vec<ChatCommand>,
#[serde(default = "default_selected_chann")]
pub default_channel: String,
#[serde(default = "default_true")]
pub can_create_channels: bool,
}
#[derive(Serialize, Deserialize, Clone, Debug)]
@@ -36,7 +40,7 @@ fn default_pub_channs() -> Vec<String> {
vec![
"main".to_owned(),
"sys".to_owned(),
"openjam_worship".to_owned(),
"jam_club".to_owned(),
]
}
@@ -44,3 +48,11 @@ fn default_pub_channs() -> Vec<String> {
fn default_command_chann() -> String {
"sys".to_owned()
}
fn default_selected_chann() -> String {
"jam_club".to_owned()
}
fn default_true() -> bool {
true
}