diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..0bcf53c --- /dev/null +++ b/src/main.rs @@ -0,0 +1,21 @@ +mod agenda; +mod discord; +mod slack; + +use crate::agenda::AgendaPoint; +use futures::join; +use tokio::sync::mpsc; + +#[tokio::main] +async fn main() { + println!("Hello, world!"); + + let (from_discord, to_slack) = mpsc::unbounded_channel::<AgendaPoint>(); + let (from_slack, to_discord) = mpsc::unbounded_channel::<AgendaPoint>(); + + join!( + discord::handle(from_discord, to_discord), + slack::handle(from_slack, to_slack), + ); +} + |
