diff --git a/src/bot/handlers/command_handler.rs b/src/bot/handlers/command_handler.rs index 61fe5d5..7d78de2 100644 --- a/src/bot/handlers/command_handler.rs +++ b/src/bot/handlers/command_handler.rs @@ -12,8 +12,10 @@ pub struct MixerCommandHandler { } impl MixerCommandHandler { - pub fn new(commands: HashMap>) -> Self { - Self { commands } + pub fn new() -> Self { + Self { + commands: HashMap::new(), + } } pub fn add_command(&mut self, command: T) { diff --git a/src/bot/mod.rs b/src/bot/mod.rs index 8b8fd0c..5b73310 100644 --- a/src/bot/mod.rs +++ b/src/bot/mod.rs @@ -25,7 +25,7 @@ pub struct MixerBot { impl MixerBot { pub fn new() -> Self { Self { - command_handler: MixerCommandHandler::new(HashMap::new()), + command_handler: MixerCommandHandler::new(), } }