mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-13 01:00:12 +00:00
feat: send events from gateway to bot over http
This commit is contained in:
parent
a72afb35a0
commit
2578eb0e3c
8 changed files with 134 additions and 15 deletions
|
|
@ -33,7 +33,7 @@ impl RuntimeConfig {
|
|||
settings.insert(key, value);
|
||||
}
|
||||
|
||||
info!("starting with runtime config: {:?}", self.settings);
|
||||
info!("starting with runtime config: {:?}", settings);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
@ -58,8 +58,8 @@ impl RuntimeConfig {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub async fn get(&self, key: String) -> Option<String> {
|
||||
self.settings.read().await.get(&key).cloned()
|
||||
pub async fn get(&self, key: &str) -> Option<String> {
|
||||
self.settings.read().await.get(key).cloned()
|
||||
}
|
||||
|
||||
pub async fn exists(&self, key: &str) -> bool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue