diff options
Diffstat (limited to 'src/feature/mod.rs')
-rw-r--r-- | src/feature/mod.rs | 6 |
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 | ||
3 | extern crate telegram_bot; | 3 | extern crate telegram_bot; |
4 | use telegram_bot::{Api, Message}; | 4 | use telegram_bot::{Api, Message}; |
5 | extern crate rustc_serialize; | ||
5 | 6 | ||
6 | pub mod jisoku; | 7 | pub mod jisoku; |
7 | pub mod tasterank; | 8 | pub mod tasterank; |
9 | pub mod topanime; | ||
8 | 10 | ||
9 | pub enum FeatureResult { | 11 | pub enum FeatureResult { |
10 | Handled, | 12 | Handled, |
@@ -18,5 +20,7 @@ pub trait Feature { | |||
18 | } | 20 | } |
19 | 21 | ||
20 | pub fn init() -> Vec<Box<Feature>> { | 22 | pub 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 | } |