Bridge violet meadow

This commit is contained in:
Charlotte Som 2022-04-08 12:20:35 +01:00
parent 82bff1b904
commit 4c2eded7a0

View file

@ -14,7 +14,7 @@ pub mod matrix;
use bridgers::Bridgers;
use tokio::sync::mpsc;
use crate::messages::MessageEvent;
use crate::{channels::ChannelReference, messages::MessageEvent};
async fn setup_discord(
token: String,
@ -61,6 +61,10 @@ async fn main() {
env_logger::init();
let bridgers = Arc::new(Bridgers::new());
bridgers.link_channels(&[
ChannelReference::Discord(844290936942755903),
ChannelReference::Matrix("!NdTsEObHNFnwLyoVvp:lu.gl".to_string()),
]);
let (event_tx, mut event_rx) = tokio::sync::mpsc::unbounded_channel::<MessageEvent>();