mirror of
https://github.com/fumiama/NanoBot.git
synced 2026-06-12 22:40:43 +08:00
finish Init Connect
This commit is contained in:
2
bot.go
2
bot.go
@@ -158,7 +158,7 @@ func (bot *Bot) Connect() {
|
|||||||
go bot.doheartbeat()
|
go bot.doheartbeat()
|
||||||
}
|
}
|
||||||
|
|
||||||
// doheartbeat 按指定间隔进行心跳包收发
|
// doheartbeat 按指定间隔进行心跳包发送
|
||||||
func (bot *Bot) doheartbeat() {
|
func (bot *Bot) doheartbeat() {
|
||||||
payload := struct {
|
payload := struct {
|
||||||
Op OpCode `json:"op"`
|
Op OpCode `json:"op"`
|
||||||
|
|||||||
Reference in New Issue
Block a user