upd
This commit is contained in:
parent
9806f14d61
commit
9f7e236ecd
9
main.go
9
main.go
@ -51,7 +51,8 @@ var (
|
||||
|
||||
db *sql.DB
|
||||
|
||||
cfg Config
|
||||
cfg Config
|
||||
MQCWMsgQueue chan ChatWarsMessage
|
||||
)
|
||||
|
||||
func PrintText(m *tb.Message) {
|
||||
@ -94,7 +95,11 @@ func main() {
|
||||
}
|
||||
|
||||
go StartBot()
|
||||
go MQMainReceive()
|
||||
|
||||
MQCWMsgQueue = make(chan ChatWarsMessage, 100)
|
||||
for w := 1; w <= 3; w++ {
|
||||
go MQGetMsg(w, MQCWMsgQueue)
|
||||
}
|
||||
|
||||
fmt.Println("Started !")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user