This commit is contained in:
shoopea 2019-05-11 11:30:07 +08:00
parent 17352c8bfb
commit f187c00399
2 changed files with 2 additions and 4 deletions

4
bot.go
View File

@ -8,9 +8,7 @@ import (
"time"
)
var ()
func BotHandlers() {
func BotHandlers(b *tb.Bot) {
b.Handle("/hello", func(m *tb.Message) {
s, err := botHello(m)
logOnError(err, "/hello")

View File

@ -94,7 +94,7 @@ func main() {
failOnError(err, "Registering bot")
log.Println("Bot registered")
go BotHandlers()
go BotHandlers(b)
MQCWMsgQueue = make(chan ChatWarsMessage, 100)
SQLMsgIdentifyQueue = make(chan int64, 100)