Bridge violet meadow

legacy
Charlotte Som 2022-04-08 12:20:35 +01:00
parent 82bff1b904
commit 4c2eded7a0
1 changed files with 5 additions and 1 deletions

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>();