Skip to content

Commit ef47a50

Browse files
committed
fix(parser): correctly check cooldowns
1 parent ed834ea commit ef47a50

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

apps/parser/internal/commands/helpers.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ func (c *Commands) shouldCheckCooldown(
1818
return false
1919
}
2020

21-
if !lo.Contains(badges, "BROADCASTER") &&
22-
!lo.Contains(badges, "MODERATOR") &&
23-
!lo.Contains(badges, "SUBSCRIBER") &&
24-
!lo.Contains(badges, "VIP") {
21+
if slices.Contains(badges, "BROADCASTER") {
22+
return false
23+
}
24+
25+
if len(command.CooldownRolesIDs) == 0 {
2526
return true
2627
}
2728

0 commit comments

Comments
 (0)