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