Kill bot automatically; Remove silly features
This commit is contained in:
parent
a2fa6e9a51
commit
dac06922f8
14
src/bot.rs
14
src/bot.rs
@ -98,6 +98,10 @@ impl Bot {
|
||||
self.handle_veloren_event(event)?;
|
||||
}
|
||||
|
||||
if !self.client.is_dead() {
|
||||
self.client.send_command("kill".to_string(), Vec::new());
|
||||
}
|
||||
|
||||
self.clock.tick();
|
||||
|
||||
Ok(true)
|
||||
@ -217,16 +221,6 @@ impl Bot {
|
||||
);
|
||||
}
|
||||
}
|
||||
"frosty" => {
|
||||
self.client.send_command(
|
||||
"group".to_string(),
|
||||
vec!["Do I look like a Discord bot to you?".to_string()],
|
||||
);
|
||||
}
|
||||
"cheese" => {
|
||||
self.client
|
||||
.send_command("say".to_string(), vec!["I love cheese!".to_string()]);
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user