]> git.localhorst.tv Git - alttp.git/commitdiff
increase gg quota to 10 minutes
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 10 Apr 2024 21:57:30 +0000 (23:57 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 10 Apr 2024 21:57:30 +0000 (23:57 +0200)
app/TwitchBot/TwitchChatBot.php

index 90a718d25b36875591e44b7ea9baf8d33fba69f6..420e93704490fe804e037697fb070883547b3846 100644 (file)
@@ -145,7 +145,7 @@ class TwitchChatBot extends TwitchBot {
                        'o7' => 2,
                ];
                $time_quotas = [
-                       'gg' => 300,
+                       'gg' => 600,
                        'gl' => 900,
                        'hi' => 60,
                        'hype' => 60,
@@ -155,7 +155,6 @@ class TwitchChatBot extends TwitchBot {
                        'o7' => 300,
                ];
                foreach ($classifications as $classification => $count) {
-                       if ($classification == $last) continue;
                        if (!isset($count_quotas[$classification]) || $count < $count_quotas[$classification]) continue;
                        if (!isset($time_quotas[$classification]) || $this->getTimeSinceSpecial($channel, $classification) < $time_quotas[$classification]) continue;
                        $this->tagChannelSpecialSent($channel, $classification);