From dac06922f8c4ade06953814eea7f762ad4d96ea5 Mon Sep 17 00:00:00 2001 From: Jeff Date: Fri, 7 Mar 2025 23:04:36 -0500 Subject: [PATCH] Kill bot automatically; Remove silly features --- src/bot.rs | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/bot.rs b/src/bot.rs index bac0c0d0..77b12394 100644 --- a/src/bot.rs +++ b/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()]); - } _ => {} } }