mirror of
https://github.com/IllusionMan1212/gorc.git
synced 2026-10-24 02:12:33 +00:00
define consts
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user