]> git.localhorst.tv Git - alttp.git/blobdiff - app/TwitchBot/TwitchChatBot.php
more classifications
[alttp.git] / app / TwitchBot / TwitchChatBot.php
index abc1b4518e2b7f528e289643551109c4b135a63a..ebf2b94af14d2da6175f578a55f759c1cd9fd515 100644 (file)
@@ -140,9 +140,11 @@ class TwitchChatBot extends TwitchBot {
                        'hi' => 2,
                        'hype' => 2,
                        'lol' => 2,
+                       'love' => 2,
                        'number' => 2,
                        'pog' => 2,
                        'o7' => 2,
+                       'wtf' => 2,
                ];
                $time_quotas = [
                        'gg' => 600,
@@ -150,9 +152,11 @@ class TwitchChatBot extends TwitchBot {
                        'hi' => 60,
                        'hype' => 60,
                        'lol' => 60,
+                       'love' => 60,
                        'number' => 300,
                        'pog' => 60,
                        'o7' => 300,
+                       'wtf' => 60,
                ];
                foreach ($classifications as $classification => $count) {
                        if ($classification == $last) continue;
@@ -172,7 +176,7 @@ class TwitchChatBot extends TwitchBot {
 
        private function randomChat(Channel $channel) {
                return $channel->queryChatlog()
-                       ->whereIn('classification', ['hi', 'hype', 'lol', 'pog', 'unclassified'])
+                       ->whereNotIn('classification', ['gg', 'gl', 'o7'])
                        ->first();
        }
 
@@ -191,6 +195,9 @@ class TwitchChatBot extends TwitchBot {
        }
 
        private function randomLaughter(Channel $channel) {
+               if (!random_int(0, 2)) {
+                       return $channel->randomOfClass('lol');
+               }
                return Arr::random([
                        ':tf:',
                        '4Head',
@@ -201,7 +208,6 @@ class TwitchChatBot extends TwitchBot {
                        'GunRun',
                        'heh',
                        'Hhhehehe',
-                       'HypeLUL',
                        'Jebaited',
                        'Jebasted',
                        'KEKW',
@@ -220,7 +226,6 @@ class TwitchChatBot extends TwitchBot {
                        'SUBprise',
                        'xD',
                        'YouDontSay',
-                       $channel->randomOfClass('lol'),
                ]);
        }