1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00

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

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

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
}