summary refs log tree commit diff
path: root/src/config.rs
diff options
context:
space:
mode:
authorAshelyn Rose <git@ashen.earth>2024-10-05 20:05:36 -0600
committerAshelyn Rose <git@ashen.earth>2024-10-05 20:05:36 -0600
commitf2cd49662f74deb894518d5169fae533454bd6a6 (patch)
tree2eebd051d5fe3ec8d739e7ec9dfe8f2c0c102de1 /src/config.rs
parentca4b0e32be531053f19ce2895b994130b247af4a (diff)
System manager now knows user_id of each bot
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index 7f18365..28fe422 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -3,6 +3,8 @@ use std::collections::HashMap;
 use regex::{Regex, RegexBuilder};
 use serde::{Deserialize, Deserializer, de::Error};
 
+use crate::system::UserId;
+
 #[derive(Deserialize)]
 pub enum AutoProxyScope {
     Global,
@@ -67,6 +69,8 @@ pub struct Member {
     #[serde(deserialize_with = "parse_regex")]
     pub message_pattern: Regex,
     pub discord_token: String,
+    #[serde(skip)]
+    pub user_id: Option<UserId>,
     pub presence: Option<PresenceMode>,
     pub status: Option<String>,
 }