]> git.localhorst.tv Git - alttp.git/commitdiff
whispers
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 28 Jun 2024 15:27:24 +0000 (17:27 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 28 Jun 2024 15:27:24 +0000 (17:27 +0200)
app/Console/Commands/TwitchAuth.php
app/Models/ChatLog.php

index e46c11871bf9738c4c36ee97c401bc3d7102e518..4b185c6cfd22b64d712fd15c39929960bc6b079f 100644 (file)
@@ -33,7 +33,7 @@ class TwitchAuth extends Command {
                if (!$token) {
                        $token = new TwitchToken();
                        $token->nick = $this->argument('nick');
-                       $token->scope = ['chat:read', 'chat:edit'];
+                       $token->scope = ['chat:read', 'chat:edit', 'whispers:read', 'whispers:edit'];
                }
                $url = $token->getAuthUrl();
                $this->line('Please visit '.$url);
index cad1bfead6668070b239e5b483f1d3fe199f5caf..49a57c25a626b5ade8c6b072899591539fc74739 100644 (file)
@@ -77,7 +77,7 @@ class ChatLog extends Model {
                        return;
                }
 
-               if ($this->command == 'PRIVMSG') {
+               if ($this->command == 'PRIVMSG' || $this->command == 'WHISPER') {
                        if (static::isKnownBot($this->nick)) {
                                $this->type = 'bot';
                        } else if (substr($this->params[0], 0, 1) == '#') {