aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 2e379fc..d2f22ff 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,4 +1,5 @@
use gpn_tron2::{
+ bot::spawn_bots,
config::Config,
game::{server::game_server, Game},
spectate::server::spectate_server,
@@ -18,6 +19,7 @@ async fn main() -> anyhow::Result<()> {
chat: broadcast::channel(16).0,
});
spawn(spectate_server(config.spectate, state.clone()));
+ spawn_bots(config.bot, state.clone()).await;
game_server(config.game, state.clone()).await?;
Ok(())
}