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:
eleksir
2023-08-17 09:48:57 -07:00
parent ce9561b488
commit 8a67a91ffb
5 changed files with 163 additions and 30 deletions

View File

@@ -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 != "" {