feat(cli): update client to use unified command endpoint

- JoinChannel/PartChannel now send via POST /messages with command field
- ListChannels uses /channels instead of /channels/all
- gofmt whitespace fixes
This commit is contained in:
clawbot
2026-02-10 17:53:13 -08:00
parent 0ee3fd78d2
commit d06bb5334a
2 changed files with 11 additions and 13 deletions

View File

@@ -15,12 +15,12 @@ type App struct {
ui *UI
client *api.Client
mu sync.Mutex
nick string
target string // current target (#channel or nick for DM)
connected bool
lastMsgID string
stopPoll chan struct{}
mu sync.Mutex
nick string
target string // current target (#channel or nick for DM)
connected bool
lastMsgID string
stopPoll chan struct{}
}
func main() {