Welcome message

This commit is contained in:
2025-12-21 22:21:13 +01:00
parent 1222a444a4
commit 143db5d2e8
2 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "voxa-server"
version = "0.1.0"
version = "0.1.0-beta2"
edition = "2024"
[dependencies]
+15
View File
@@ -9,6 +9,19 @@ use std::{
},
};
const WELCOME: &str = "
$$\\ $$\\ $$$$$$\\ $$\\ $$\\ $$$$$$\\
$$ | $$ |$$ __$$\\ $$ | $$ |$$ __$$\\
$$ | $$ |$$ / $$ |\\$$\\ $$ |$$ / $$ |
\\$$\\ $$ |$$ | $$ | \\$$$$ / $$$$$$$$ |
\\$$\\$$ / $$ | $$ | $$ $$< $$ __$$ |
\\$$$ / $$ | $$ |$$ /\\$$\\ $$ | $$ |
\\$ / $$$$$$ |$$ / $$ |$$ | $$ |
\\_/ \\______/ \\__| \\__|\\__| \\__|
";
use crate::{
cli, logger,
plugin::{Plugin, loader::PluginLoader, types::LoaderMessage},
@@ -102,6 +115,8 @@ impl Server {
let listener = TcpListener::bind(format!("0.0.0.0:{}", self.config.port))?;
Self::LOGGER.info(format!("Server listening at 0.0.0.0:{}", self.config.port));
println!("{WELCOME}\nversion {}\n", env!("CARGO_PKG_VERSION"));
for stream in listener.incoming() {
match stream {
Ok(stream) => {