test
This commit is contained in:
parent
f187c00399
commit
1717ffcb6c
2
bot.go
2
bot.go
@ -8,7 +8,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
func BotHandlers(b *tb.Bot) {
|
||||
func BotHandlers() {
|
||||
b.Handle("/hello", func(m *tb.Message) {
|
||||
s, err := botHello(m)
|
||||
logOnError(err, "/hello")
|
||||
|
6
main.go
6
main.go
@ -94,7 +94,11 @@ func main() {
|
||||
failOnError(err, "Registering bot")
|
||||
log.Println("Bot registered")
|
||||
|
||||
go BotHandlers(b)
|
||||
go BotHandlers()
|
||||
u := tb.User{
|
||||
ID: cfg.Bot.Admin,
|
||||
}
|
||||
b.Send(&u, "Bot restarted")
|
||||
|
||||
MQCWMsgQueue = make(chan ChatWarsMessage, 100)
|
||||
SQLMsgIdentifyQueue = make(chan int64, 100)
|
||||
|
Loading…
Reference in New Issue
Block a user