Bridge violet meadow
parent
82bff1b904
commit
4c2eded7a0
|
@ -14,7 +14,7 @@ pub mod matrix;
|
||||||
use bridgers::Bridgers;
|
use bridgers::Bridgers;
|
||||||
use tokio::sync::mpsc;
|
use tokio::sync::mpsc;
|
||||||
|
|
||||||
use crate::messages::MessageEvent;
|
use crate::{channels::ChannelReference, messages::MessageEvent};
|
||||||
|
|
||||||
async fn setup_discord(
|
async fn setup_discord(
|
||||||
token: String,
|
token: String,
|
||||||
|
@ -61,6 +61,10 @@ async fn main() {
|
||||||
env_logger::init();
|
env_logger::init();
|
||||||
|
|
||||||
let bridgers = Arc::new(Bridgers::new());
|
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>();
|
let (event_tx, mut event_rx) = tokio::sync::mpsc::unbounded_channel::<MessageEvent>();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue