* chat

* docs

* fmt
This commit is contained in:
Chris Tate
2026-04-06 09:21:11 -05:00
committed by GitHub
parent 317e6869b6
commit 131f229971
10 changed files with 655 additions and 15 deletions
+12
View File
@@ -1,3 +1,4 @@
mod chat;
mod color;
mod commands;
mod connection;
@@ -704,6 +705,17 @@ fn main() {
return;
}
// Handle chat command
if clean.first().map(|s| s.as_str()) == Some("chat") {
let message = if clean.len() > 1 {
Some(clean[1..].join(" "))
} else {
None
};
chat::run_chat(&flags, message);
return;
}
let mut cmd = match parse_command(&clean, &flags) {
Ok(c) => c,
Err(e) => {