Browse Source

Update motd

master
Stephen 2 months ago
parent
commit
4d597f7fea
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/main.rs

+ 2
- 1
src/main.rs View File

@ -218,7 +218,8 @@ async fn motd(
state: Arc<Mutex<Shared>>,
lines: &mut Framed<TcpStream,LinesCodec>
) -> Result<(), Box<dyn Error>> {
lines.send("TELNET CHAT ROULETTE\r".yellow().to_string()).await?;
lines.send("TELNET CHAT ROULETTE - scd31.com\r".yellow().to_string()).await?;
lines.send("Source code at https://git.scd31.com/stephen/telnet-chat-roulette\r".yellow().to_string()).await?;
lines.send(format!("{} {}\r", state.lock().await.clients.len(), "users online".yellow().to_string())).await?;
lines.send("Type /quit to quit\r".yellow().to_string()).await?;


Loading…
Cancel
Save