Print chat message as it is sent

This commit is contained in:
Trevor Slocum 2023-09-15 22:33:30 -07:00
parent 1628172e1c
commit 9266c363f2
2 changed files with 7 additions and 0 deletions

View file

@ -4,6 +4,12 @@
**Note:** This is unfinished alpha-quality software. Here be dragons.
## Demo
A live demo is available via SSH:
`ssh bgammon.org -p 5000`
## Installation
To install `bgammon-cli` to `~/go/bin/bgammon-cli`, execute the following command:

1
app.go
View file

@ -340,6 +340,7 @@ func RunApp(c *Client, b *GameBoard) error {
if text[0] == '/' {
text = text[1:]
} else {
l(fmt.Sprintf("<%s> %s", c.Username, text))
text = "say " + text
}