aboutsummaryrefslogtreecommitdiff
path: root/src/feature/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/feature/mod.rs')
-rw-r--r--src/feature/mod.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/feature/mod.rs b/src/feature/mod.rs
index a52bb2c..b57c179 100644
--- a/src/feature/mod.rs
+++ b/src/feature/mod.rs
@@ -2,9 +2,11 @@ use std::boxed::Box;
2 2
3extern crate telegram_bot; 3extern crate telegram_bot;
4use telegram_bot::{Api, Message}; 4use telegram_bot::{Api, Message};
5extern crate rustc_serialize;
5 6
6pub mod jisoku; 7pub mod jisoku;
7pub mod tasterank; 8pub mod tasterank;
9pub mod topanime;
8 10
9pub enum FeatureResult { 11pub enum FeatureResult {
10 Handled, 12 Handled,
@@ -18,5 +20,7 @@ pub trait Feature {
18} 20}
19 21
20pub fn init() -> Vec<Box<Feature>> { 22pub fn init() -> Vec<Box<Feature>> {
21 vec![Box::new(tasterank::Tasterank::new()), Box::new(jisoku::Jisoku::new())] 23 vec![Box::new(tasterank::Tasterank::new()),
24 Box::new(jisoku::Jisoku::new()),
25 Box::new(topanime::TopAnime::new())]
22} 26}