diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2020-11-16 16:19:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-16 16:19:21 +0100 |
| commit | a20e0162412ac4af6ef629e4b99654afad5a464a (patch) | |
| tree | 0841535afce3070ab71591d56cb46a9d3e174aac /src/main.rs | |
| parent | f771b73bcda915ce69db49f40473558ae567223f (diff) | |
| parent | 96b9a8f66f62e64bc4907e12de0772392f7804c7 (diff) | |
| download | kodapa-a20e0162412ac4af6ef629e4b99654afad5a464a.tar.gz | |
Merge pull request #1 from lithekod/rust
Initial minimum viable bot
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), + ); +} + |
