aboutsummaryrefslogtreecommitdiff
path: root/server/src/commands.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/commands.rs')
-rw-r--r--server/src/commands.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/server/src/commands.rs b/server/src/commands.rs
index b5645c8c..5be9e662 100644
--- a/server/src/commands.rs
+++ b/server/src/commands.rs
@@ -24,7 +24,9 @@ use crate::{
use anyhow::Result;
use clap::{Parser, ValueEnum};
use hurrycurry_bot::algos::ALGO_CONSTRUCTORS;
-use hurrycurry_protocol::{DocumentElement, Menu, Message, PacketC, PlayerClass, PlayerID};
+use hurrycurry_protocol::{
+ Character, DocumentElement, Menu, Message, PacketC, PlayerClass, PlayerID,
+};
use std::{fmt::Write, time::Duration};
#[derive(Parser)]
@@ -242,7 +244,11 @@ impl Server {
let algo = cons();
self.entities.push(Box::new(BotDriver::new(
format!("{}-bot", name.unwrap_or((*aname).to_owned())),
- 51,
+ Character {
+ color: 0,
+ hairstyle: 0,
+ headwear: 0,
+ },
PlayerClass::Bot,
algo,
)));