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:
1 parent
4d2ddaeafb
commit
792a6362e3
37 files changed
+1119
-34
No files matched your search
@@ -0,0 +1,20 @@
|
||||
use polariton_server::operations::Immediate;
|
||||
//use polariton::operation::{ParameterTable, Typed};
|
||||
use rc_core::ConfigProvider;
|
||||
|
||||
const PARAM_KEY: u8 = 20;
|
||||
|
||||
pub(super) fn public_channels_provider(conf: &rc_core::persist::config::ConfigImpl) -> Immediate<13, crate::UserTy> {
|
||||
let pub_channs = conf.public_channels();
|
||||
Immediate::new(move || {
|
||||
let mut params = std::collections::HashMap::with_capacity(1);
|
||||
params.insert(PARAM_KEY, pub_channs.to_owned());
|
||||
/*params.insert(PARAM_KEY, Typed::Arr(Arr {
|
||||
ty: polariton::serdes::TypePrefix::Str,
|
||||
items: vec![
|
||||
Typed::Str("Pluto".into()),
|
||||
],
|
||||
}));*/
|
||||
params.into()
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user