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},
};
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:?}");
}
_ => (),
}

View File

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