define consts

This commit is contained in:
2021-10-11 20:44:23 +03:00
parent 8161e1e90e
commit 18d30cdedc
2 changed files with 254 additions and 1 deletions
+5 -1
View File
@@ -35,9 +35,13 @@ func main() {
defer conn.Close()
// TODO: read nickname and channel from user input (stdin ?? or TUI)
conn.Write([]byte("CAP LS\r\n"))
// TODO: PASS if it requires a password
conn.Write([]byte("NICK illusion\r\n"))
conn.Write([]byte("USER illusion 0 * :illusion\r\n"))
conn.Write([]byte("JOIN #libera\r\n"))
// TODO: CAP REQ :whatever capability the client recognizes and supports
conn.Write([]byte("CAP END\r\n"))
// conn.Write([]byte("JOIN #libera\r\n"))
for {
buf := make([]byte, 1024)