2017-02-08 03:25:03 -06:00
|
|
|
pub mod lua;
|
|
|
|
pub mod discord;
|
2017-02-13 00:22:06 -06:00
|
|
|
pub mod stdin;
|
|
|
|
pub mod echo;
|
2017-02-08 03:25:03 -06:00
|
|
|
|
|
|
|
pub mod loader;
|
|
|
|
|
2017-02-13 00:22:06 -06:00
|
|
|
use Tenquestionmarks;
|
|
|
|
use event::Event;
|
2017-02-08 03:25:03 -06:00
|
|
|
|
2017-02-13 00:22:06 -06:00
|
|
|
use std::sync::mpsc::{Sender, Receiver};
|
|
|
|
|
2017-02-16 01:05:33 -06:00
|
|
|
pub trait Module : Sync {
|
2017-02-13 00:22:06 -06:00
|
|
|
fn register (&self, tenquestionmarks: &Tenquestionmarks) {}
|
2017-02-13 00:55:30 -06:00
|
|
|
fn consume_events (&self, receiver: Receiver<Event>) {}
|
2017-02-13 22:13:33 -06:00
|
|
|
fn produce_events<'a>(&'a self, sender: Sender<Event>) {}
|
2017-02-08 03:25:03 -06:00
|
|
|
}
|