diff --git a/src/bot.rs b/src/bot.rs index 05bfd49..bedc6b5 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -123,6 +123,10 @@ impl Bot { self.ban_players(names)?; } } + "cheese" => { + self.client.chat_mode = ChatMode::Group; + self.client.send_chat("I love cheese!".to_string()); + } "inv" => { if !self.ban_list.contains(sender) { self.invite_players(names) @@ -133,10 +137,6 @@ impl Bot { self.kick_players(names) } } - "cheese" => { - self.client.chat_mode = ChatMode::Group; - self.client.send_chat("I love cheese!".to_string()); - } _ => {} } }