MSPA: Disable test

This commit is contained in:
Hamcha 2016-03-31 10:24:13 +01:00
parent df4cf8089a
commit 54dcccb892
1 changed files with 9 additions and 7 deletions

View File

@ -41,14 +41,16 @@ func process(b *tg.Broker, update tg.APIMessage) {
delete(apichat, update.Chat.ChatID) delete(apichat, update.Chat.ChatID)
broker.SendTextMessage(update.Chat, "Ok! Non ti notificherò più", &update.MessageID) broker.SendTextMessage(update.Chat, "Ok! Non ti notificherò più", &update.MessageID)
} }
if *(update.Text) == "!tesths" { /*
isok, data := getupd8("showupd8(\"009309\", \"[S] ACT 6 ACT 6 ACT 5\", 12);\r\n") if *(update.Text) == "!tesths" {
if isok { isok, data := getupd8("showupd8(\"009309\", \"[S] ACT 6 ACT 6 ACT 5\", 12);\r\n")
advert(data) if isok {
} else { advert(data)
broker.SendTextMessage(update.Chat, "Test fallito :/", &update.MessageID) } else {
broker.SendTextMessage(update.Chat, "Test fallito :/", &update.MessageID)
}
} }
} */
} }
func advert(upd8 Upd8) { func advert(upd8 Upd8) {