use std::boxed::Box; extern crate telegram_bot; use telegram_bot::{Api, Message}; pub mod jisoku; pub mod tasterank; pub enum FeatureResult { Handled, Skip, } pub trait Feature { fn name(&self) -> &'static str; fn init(&mut self); fn handle(&mut self, Api, Message) -> Result; } pub fn init() -> Vec> { vec![Box::new(tasterank::Tasterank::new()), Box::new(jisoku::Jisoku::new())] }