mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Implement basic chat functionality
This commit is contained in:
15
rc_core/src/persist/chat.rs
Normal file
15
rc_core/src/persist/chat.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
use serde::{Serialize, Deserialize};
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug)]
|
||||
pub struct ChatConfig {
|
||||
#[serde(default = "default_pub_channs")]
|
||||
pub public_channels: Vec<String>,
|
||||
}
|
||||
|
||||
fn default_pub_channs() -> Vec<String> {
|
||||
vec![
|
||||
"main".to_owned(),
|
||||
"sys".to_owned(),
|
||||
"openjam_worship".to_owned(),
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user