aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-04 19:37:46 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-04 19:37:46 +0200
commit473dc29e540cb1ed332b6f2895f6f6efe2d60e65 (patch)
treeccd869dab5adece9f9f6a7190ee56fe5ad1c7b3d /src/main.rs
parentf39f9840a8d14f35de0d38c9570ae27bacb20119 (diff)
downloadgpn-tron-rust-473dc29e540cb1ed332b6f2895f6f6efe2d60e65.tar
gpn-tron-rust-473dc29e540cb1ed332b6f2895f6f6efe2d60e65.tar.bz2
gpn-tron-rust-473dc29e540cb1ed332b6f2895f6f6efe2d60e65.tar.zst
spectator see names
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(())
}