mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-09-18 17:52:54 +00:00
Fix all timers spamming on stream-start
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
ad8244814a
commit
ddef07120f
@ -64,6 +64,9 @@ func (a *autoMessage) CanSend() bool {
|
||||
return false
|
||||
}
|
||||
if !streamLive {
|
||||
// Timer is only to be triggered during stream being live,
|
||||
// reset the timer in order not to spam all messages on stream-start
|
||||
a.lastMessageSent = time.Now()
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user