bot: receive events from webhook

This commit is contained in:
Antoine Martin 2021-09-12 17:36:18 +02:00
parent e6926d5ba2
commit d09070dae7
5 changed files with 95 additions and 15 deletions

View file

@ -1,2 +1,11 @@
use std::sync::{mpsc::SyncSender};
mod github;
pub use github::github_webhook;
pub use github::{github_webhook, GitHubEvent};
pub struct EventSender(pub SyncSender<Event>);
#[derive(Debug)]
pub enum Event {
GitHub(GitHubEvent),
}