mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-09-19 18:12:55 +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
|
return false
|
||||||
}
|
}
|
||||||
if !streamLive {
|
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
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user