test
This commit is contained in:
parent
17352c8bfb
commit
f187c00399
4
bot.go
4
bot.go
@ -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")
|
||||||
|
2
main.go
2
main.go
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user