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-16 02:00:38 -06:00
|
|
|
pub mod random;
|
2017-02-19 04:49:06 -06:00
|
|
|
pub mod pvn;
|
2017-02-22 23:40:30 -06:00
|
|
|
pub mod echobox;
|
2017-02-08 03:25:03 -06:00
|
|
|
|
|
|
|
pub mod loader;
|
|
|
|
|
2017-02-13 00:22:06 -06:00
|
|
|
use Tenquestionmarks;
|
2017-02-25 20:17:46 -06:00
|
|
|
use event::Envelope;
|
2017-02-08 03:25:03 -06:00
|
|
|
|
2017-02-19 02:55:30 -06:00
|
|
|
use std::sync::Arc;
|
2017-02-25 21:11:25 -06:00
|
|
|
use std::sync::mpsc::Receiver;
|
|
|
|
use transformable_channels::mpsc::ExtSender;
|
2017-02-13 00:22:06 -06:00
|
|
|
|
2017-02-16 01:05:33 -06:00
|
|
|
pub trait Module : Sync {
|
2017-02-25 20:17:46 -06:00
|
|
|
fn register (&self, _: &Tenquestionmarks) {}
|
2017-02-25 21:11:25 -06:00
|
|
|
fn run (&self, _: Box<ExtSender<Envelope>>, _: Receiver<Arc<Envelope>>) {}
|
2017-02-08 03:25:03 -06:00
|
|
|
}
|