Initial commit #1

Merged
senaduka merged 16 commits from initial-commit into main 2021-09-20 12:53:21 +02:00
Showing only changes of commit 69b8282880 - Show all commits

View File

@@ -188,6 +188,11 @@ func handleMessage(s xmpp.Sender, p stanza.Packet) {
return
}
if len(msg.Body) == 0 {
log.Printf("<%v> received empty message, and will not respond", msg.To)
return
}
log.Printf("<%v> received following message: %v", msg.To, msg.Body)
statusMesageDelay := int64(rand.Intn(appConfig.AppConfig.GeneralOptions.StatusMessageDelay))
log.Printf("DELAYING FOR: %v", statusMesageDelay*1000000000)