Clean up
This commit is contained in:
parent
bbb3d56358
commit
555a2f5289
@ -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:?}");
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
|
||||
|
@ -49,8 +49,8 @@ fn main() {
|
||||
|
||||
loop {
|
||||
match bot.tick() {
|
||||
Ok(true) => return,
|
||||
Ok(false) => {}
|
||||
Ok(true) => {}
|
||||
Ok(false) => return,
|
||||
Err(error) => {
|
||||
error!("{error}");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user