mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-09 16:50:01 +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
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue