diff --git a/src/bot.rs b/src/bot.rs index 5eb1d9d..c84c7e3 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -6,13 +6,14 @@ use std::{ time::{Duration, Instant}, }; -use log::{debug, info}; +use log::{debug, error, info}; use tokio::runtime::Runtime; use vek::{Quaternion, Vec3}; use veloren_client::{addr::ConnectionArgs, Client, Event as VelorenEvent, WorldExt}; use veloren_common::{ clock::Clock, comp::{ChatType, ControllerInputs, Ori, Pos}, + outcome::Outcome, time::DayPeriod, uid::Uid, uuid::Uuid, @@ -205,6 +206,9 @@ impl Bot { .send_command("tell".to_string(), vec![player_name, message.to_string()]); } } + VelorenEvent::Kicked(message) => { + error!("Kicked from server: {message:?}"); + } _ => (), } diff --git a/src/main.rs b/src/main.rs index 3ed18f8..543345e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -49,8 +49,8 @@ fn main() { loop { match bot.tick() { - Ok(true) => return, - Ok(false) => {} + Ok(true) => {} + Ok(false) => return, Err(error) => { error!("{error}"); }