Clean up
This commit is contained in:
parent
91d71deb1d
commit
d57ec784f1
@ -123,6 +123,10 @@ impl Bot {
|
|||||||
self.ban_players(names)?;
|
self.ban_players(names)?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
"cheese" => {
|
||||||
|
self.client.chat_mode = ChatMode::Group;
|
||||||
|
self.client.send_chat("I love cheese!".to_string());
|
||||||
|
}
|
||||||
"inv" => {
|
"inv" => {
|
||||||
if !self.ban_list.contains(sender) {
|
if !self.ban_list.contains(sender) {
|
||||||
self.invite_players(names)
|
self.invite_players(names)
|
||||||
@ -133,10 +137,6 @@ impl Bot {
|
|||||||
self.kick_players(names)
|
self.kick_players(names)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"cheese" => {
|
|
||||||
self.client.chat_mode = ChatMode::Group;
|
|
||||||
self.client.send_chat("I love cheese!".to_string());
|
|
||||||
}
|
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user