aboutsummaryrefslogtreecommitdiff
path: root/src/feature/mod.rs
diff options
context:
space:
mode:
authorjan <jan@ruken.pw>2016-04-07 16:16:03 (UTC)
committerjan <jan@ruken.pw>2016-04-07 16:16:03 (UTC)
commit609fa1ab6351dd58a8c9cd245aeec0eaf647c9e9 (patch)
tree1ba75752cccb7a61ef32263ccbffc7e6fd46ce43 /src/feature/mod.rs
parent47cf2e6ee0489d2504a61e39e76dd88c5747694d (diff)
feature TopAnime hinzugefuegt, wird automatisch geupdated
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}