Attempt to fix "I love cheese" bug
This commit is contained in:
parent
f7ce6f5981
commit
c1e15672a8
@ -142,9 +142,6 @@ impl Bot {
|
||||
if content == "cheese" {
|
||||
info!("{} loves cheese!", sender_info.player_alias);
|
||||
|
||||
let uid = self.find_uid(&sender_info.player_alias)?;
|
||||
|
||||
if self.client.group_members().contains_key(&uid) {
|
||||
let content = format!("{} loves cheese!", sender_info.player_alias);
|
||||
|
||||
match &message.chat_type {
|
||||
@ -153,7 +150,6 @@ impl Bot {
|
||||
}
|
||||
_ => self.client.send_command("group".to_string(), vec![content]),
|
||||
}
|
||||
}
|
||||
|
||||
return Ok(());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user