test
This commit is contained in:
parent
f547da7e3e
commit
ee92709079
7
bot.go
7
bot.go
@ -101,9 +101,6 @@ func botQuery(q *tb.Query) {
|
|||||||
func botText(m *tb.Message) {
|
func botText(m *tb.Message) {
|
||||||
PrintText(m)
|
PrintText(m)
|
||||||
|
|
||||||
b, _ := json.Marshal(m)
|
|
||||||
log.Printf("botText : %s\n", string(b))
|
|
||||||
|
|
||||||
if (m.Chat.ID == cfg.Bot.Depositchat || m.Chat.ID == cfg.Bot.Mainchat) && m.IsForwarded() && int64(m.OriginalSender.ID) == chtwrsbotID64 {
|
if (m.Chat.ID == cfg.Bot.Depositchat || m.Chat.ID == cfg.Bot.Mainchat) && m.IsForwarded() && int64(m.OriginalSender.ID) == chtwrsbotID64 {
|
||||||
log.Printf("botText : forwarding message.\n")
|
log.Printf("botText : forwarding message.\n")
|
||||||
cwm := ChatWarsMessage{
|
cwm := ChatWarsMessage{
|
||||||
@ -116,10 +113,6 @@ func botText(m *tb.Message) {
|
|||||||
IsForwarded: true,
|
IsForwarded: true,
|
||||||
}
|
}
|
||||||
MQCWMsgQueue <- cwm
|
MQCWMsgQueue <- cwm
|
||||||
|
|
||||||
} else {
|
|
||||||
log.Printf("botText : printing message.\n")
|
|
||||||
|
|
||||||
}
|
}
|
||||||
// all the text messages that weren't
|
// all the text messages that weren't
|
||||||
// captured by existing handlers
|
// captured by existing handlers
|
||||||
|
Loading…
Reference in New Issue
Block a user