Add weather module
This commit is contained in:
parent
52d7c13013
commit
ebb3333e78
6 changed files with 339 additions and 5 deletions
|
|
@ -28,7 +28,7 @@ impl Bot {
|
|||
pub fn new(config: Config, conn: Connection) -> Bot {
|
||||
let current_nick = config.nick.clone();
|
||||
|
||||
let mods = modules::all();
|
||||
let mods = modules::all(&config.name);
|
||||
let mut routes: HashMap<&'static str, usize> = HashMap::new();
|
||||
for (i, m) in mods.iter().enumerate() {
|
||||
for spec in m.commands() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue