From 8aec8d19d33268f6c0c7b69f54906c7e34392bef Mon Sep 17 00:00:00 2001 From: legitnull Date: Sun, 19 Feb 2023 16:42:34 -0700 Subject: [PATCH] added some color --- src/main.rs | 9 ++++++--- src/modules/invade.rs | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index ba62049..52b1110 100644 --- a/src/main.rs +++ b/src/main.rs @@ -14,12 +14,13 @@ mod modules { pub mod ai; pub mod invade; pub mod test; + pub mod ai_invade; } use modules::ai::Ai; // FIX THIS BS use modules::ping::PingCommand; use modules::invade::InvadeCommand; -//use modules::test::TestCommand; +//use modules::ai_invade::AiInvadeCommand; use modules::kill::KillCommand; // ... use crate::modules::Command; @@ -86,6 +87,8 @@ fn main() { let ping_command = PingCommand; let kill_command = KillCommand; let invade_command = InvadeCommand; + //let ai_invade_command = AiInvadeCommand; + //let test_command = TestCommand; let ai = Ai; @@ -109,8 +112,8 @@ fn main() { for response in invade_command.handle(message) { ssl_stream.write_all(response.as_bytes()).unwrap(); } - } //else if message.contains(":%test") { - // for response in test_command.handle(message) { + } //else if message.contains(":%aiinvade") { + // for response in ai_invade_command.handle(message) { // ssl_stream.write_all(response.as_bytes()).unwrap(); // } //} diff --git a/src/modules/invade.rs b/src/modules/invade.rs index 192b7be..89e341c 100644 --- a/src/modules/invade.rs +++ b/src/modules/invade.rs @@ -13,6 +13,7 @@ struct Config { invaders: Vec, server: String, port: u16, + } pub struct InvadeCommand;