30 lines
753 B
Rust
30 lines
753 B
Rust
pub mod builtins;
|
|
pub mod crypto;
|
|
pub mod define;
|
|
pub mod dice;
|
|
pub mod down;
|
|
pub mod hash;
|
|
pub mod karma;
|
|
pub mod tinyurl;
|
|
pub mod urban;
|
|
pub mod weather;
|
|
pub mod wiki;
|
|
|
|
use super::module::Module;
|
|
use crate::i18n::Locale;
|
|
|
|
pub fn all(network: &str, locale: Locale, karma_url: Option<String>) -> Vec<Box<dyn Module>> {
|
|
vec![
|
|
Box::new(builtins::Builtins),
|
|
Box::new(dice::Dice::new()),
|
|
Box::new(hash::Hash),
|
|
Box::new(karma::Karma::new(network, locale, karma_url)),
|
|
Box::new(crypto::Crypto),
|
|
Box::new(define::Define),
|
|
Box::new(down::Down),
|
|
Box::new(tinyurl::Tinyurl),
|
|
Box::new(urban::Urban),
|
|
Box::new(weather::Weather::new(network)),
|
|
Box::new(wiki::Wiki),
|
|
]
|
|
}
|