Implement random startup/runtime status, cosmetic fixes
* Implement random startup status from array in config * Implement random runtime status from array in config * Implement runtime status rotation * Remove noecho option from config and from code * Use separate goroutine to set statuses
This commit is contained in:
@@ -22,10 +22,6 @@ func parseEvent(e interface{}) { //nolint:maintidx,gocognit,gocyclo
|
||||
log.Debugf("Looks like message, ChatType: %s, From: %s, Subject: %s Text: %s",
|
||||
v.Type, v.Remote, v.Subject, v.Text)
|
||||
|
||||
if config.NoEcho {
|
||||
return
|
||||
}
|
||||
|
||||
// Топик чятика присылается в виде сообщения с subject, но без text
|
||||
// В то же время сообщения от людей приходят с пустым subject, но с заполненным text
|
||||
if v.Text != "" {
|
||||
|
||||
Reference in New Issue
Block a user