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" "time"
) )
var () func BotHandlers(b *tb.Bot) {
func BotHandlers() {
b.Handle("/hello", func(m *tb.Message) { b.Handle("/hello", func(m *tb.Message) {
s, err := botHello(m) s, err := botHello(m)
logOnError(err, "/hello") logOnError(err, "/hello")

View File

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