【文件属性】:
文件名称:irc:Golang IRC客户端库
文件大小:12KB
文件格式:ZIP
更新时间:2021-05-20 20:40:23
Go
irc
-导入“ github.com/Elemental-IRCd/irc”
软件包irc遵循RFC 1459为Go程序实现了一个基本的IRC客户端。
这不会跟踪通道状态。
用法示例:
package main
import (
"github.com/Elemental-IRCd/irc"
)
func main() {
bot := irc.New("MyBot", "foosmith")
bot.UseTLS = true
bot.AddCallback("001", func(*irc.Event) {
bot.Join("#irc")
})
err := bot.Connect("irc.ponychat.net:6697")
if err != nil {
panic(err)
}
bot.Loop()
}
用法
const (
VE
【文件预览】:
irc-master
----doc.go(464B)
----irc_test.go(6KB)
----irc.go(12KB)
----LICENSE(2KB)
----irc_struct.go(1KB)
----README.md(7KB)
----irc_callback.go(6KB)