This commit is contained in:
Jeff 2024-07-27 21:49:23 -04:00
parent bbb3d56358
commit 555a2f5289
2 changed files with 7 additions and 3 deletions

View File

@ -6,13 +6,14 @@ use std::{
time::{Duration, Instant}, time::{Duration, Instant},
}; };
use log::{debug, info}; use log::{debug, error, info};
use tokio::runtime::Runtime; use tokio::runtime::Runtime;
use vek::{Quaternion, Vec3}; use vek::{Quaternion, Vec3};
use veloren_client::{addr::ConnectionArgs, Client, Event as VelorenEvent, WorldExt}; use veloren_client::{addr::ConnectionArgs, Client, Event as VelorenEvent, WorldExt};
use veloren_common::{ use veloren_common::{
clock::Clock, clock::Clock,
comp::{ChatType, ControllerInputs, Ori, Pos}, comp::{ChatType, ControllerInputs, Ori, Pos},
outcome::Outcome,
time::DayPeriod, time::DayPeriod,
uid::Uid, uid::Uid,
uuid::Uuid, uuid::Uuid,
@ -205,6 +206,9 @@ impl Bot {
.send_command("tell".to_string(), vec![player_name, message.to_string()]); .send_command("tell".to_string(), vec![player_name, message.to_string()]);
} }
} }
VelorenEvent::Kicked(message) => {
error!("Kicked from server: {message:?}");
}
_ => (), _ => (),
} }

View File

@ -49,8 +49,8 @@ fn main() {
loop { loop {
match bot.tick() { match bot.tick() {
Ok(true) => return, Ok(true) => {}
Ok(false) => {} Ok(false) => return,
Err(error) => { Err(error) => {
error!("{error}"); error!("{error}");
} }