文件名称:hipbot:在 Go 中创建 hipchat 聊天机器人的简单库
文件大小:3KB
文件格式:ZIP
更新时间:2024-07-24 20:20:03
Go
非常简单的 Hipchat 机器人库。 文档: : 例子: package main import ( "github.com/jonvaldes/hipbot" ) func main() { bot, err := hipbot.NewBot("MYUSERID@chat.hipchat.com", "NICKNAME", "PASS") if err != nil { panic(err) } bot.JoinRoom("ROOMNAME@conf.hipchat.com") mux := hipbot.NewMux() mux.AddHandler(`^echo *`, func(b *hipbot.Bot, m hipbot.Msg) { b.Answer(m, "Echo "+m
【文件预览】:
hipbot-master
----hipchat.go(4KB)
----LICENSE(1KB)
----README.md(698B)