]> git.localhorst.tv Git - alttp.git/commitdiff
minor fixes
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 3 Nov 2024 10:52:06 +0000 (11:52 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 3 Nov 2024 21:08:23 +0000 (22:08 +0100)
app/Console/Commands/TwitchAuth.php
app/Models/ChatLog.php
app/TwitchBot/IRCMessage.php
app/TwitchBot/TokenizedMessage.php
resources/js/pages/HorstieLog.js

index 94d8adaa71628c28cc304a28011c292b8675dbed..043ad00004b20bddae5009645f7e9925f6c9aae2 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', 'whispers:read', 'user:manage:whispers'];
+                       $token->scope = ['chat:read', 'chat:edit', 'whispers:read', 'user:manage:whispers', 'moderator:manage:shoutouts'];
                }
                $url = $token->getAuthUrl();
                $this->line('Please visit '.$url);
index 8b2bfafedcc90a92af7383caac41a692507fcfbc..1aca19d9ad207679ab7541140270425ad853d459 100644 (file)
@@ -5,8 +5,6 @@ namespace App\Models;
 use App\TwitchBot\TokenizedMessage;
 use Illuminate\Database\Eloquent\Factories\HasFactory;
 use Illuminate\Database\Eloquent\Model;
-use Illuminate\Support\Arr;
-use Illuminate\Support\Str;
 use LanguageDetection\Language;
 
 class ChatLog extends Model {
index c256030981a2e1292457fa0ba1f02767ea2d5b19..35ac2783910f5f5a5c0bd0d6c3e85eaed94a4a78 100644 (file)
@@ -93,6 +93,7 @@ class IRCMessage {
                                } else {
                                        $str .= ';';
                                }
+                               // TODO: this may need some kind of encoding?
                                $str .= $name.'=';
                                if (!empty($value)) {
                                        $str .= $value;
index e33ec9772aef2951ae21d13a03f5fcd1f1752ce4..8cf83ba3892a0d48f91e76e9b45e454e68d7cca4 100644 (file)
@@ -3,7 +3,6 @@
 namespace App\TwitchBot;
 
 use App\Models\ChatLog;
-use Illuminate\Support\Arr;
 use Illuminate\Support\Str;
 
 class TokenizedMessage {
index 55d37847d9a99e5b9284a79560d11b14df49a8b4..25661e0ca98d01327adde38f1d3abe5e5f72338e 100644 (file)
@@ -26,7 +26,7 @@ export const Component = () => {
                }
                axios
                        .get(`/api/chatbotlogs/`, {
-                               signal: ctrl.signal
+                               signal: ctrl.signal,
                        })
                        .then(response => {
                                setError(null);