From 8c0d8167c2c5df5cb4e9ffa1cf911b024125f83a Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Sun, 3 Nov 2024 11:52:06 +0100 Subject: [PATCH] minor fixes --- app/Console/Commands/TwitchAuth.php | 2 +- app/Models/ChatLog.php | 2 -- app/TwitchBot/IRCMessage.php | 1 + app/TwitchBot/TokenizedMessage.php | 1 - resources/js/pages/HorstieLog.js | 2 +- 5 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/Console/Commands/TwitchAuth.php b/app/Console/Commands/TwitchAuth.php index 94d8ada..043ad00 100644 --- a/app/Console/Commands/TwitchAuth.php +++ b/app/Console/Commands/TwitchAuth.php @@ -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); diff --git a/app/Models/ChatLog.php b/app/Models/ChatLog.php index 8b2bfaf..1aca19d 100644 --- a/app/Models/ChatLog.php +++ b/app/Models/ChatLog.php @@ -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 { diff --git a/app/TwitchBot/IRCMessage.php b/app/TwitchBot/IRCMessage.php index c256030..35ac278 100644 --- a/app/TwitchBot/IRCMessage.php +++ b/app/TwitchBot/IRCMessage.php @@ -93,6 +93,7 @@ class IRCMessage { } else { $str .= ';'; } + // TODO: this may need some kind of encoding? $str .= $name.'='; if (!empty($value)) { $str .= $value; diff --git a/app/TwitchBot/TokenizedMessage.php b/app/TwitchBot/TokenizedMessage.php index e33ec97..8cf83ba 100644 --- a/app/TwitchBot/TokenizedMessage.php +++ b/app/TwitchBot/TokenizedMessage.php @@ -3,7 +3,6 @@ namespace App\TwitchBot; use App\Models\ChatLog; -use Illuminate\Support\Arr; use Illuminate\Support\Str; class TokenizedMessage { diff --git a/resources/js/pages/HorstieLog.js b/resources/js/pages/HorstieLog.js index 55d3784..25661e0 100644 --- a/resources/js/pages/HorstieLog.js +++ b/resources/js/pages/HorstieLog.js @@ -26,7 +26,7 @@ export const Component = () => { } axios .get(`/api/chatbotlogs/`, { - signal: ctrl.signal + signal: ctrl.signal, }) .then(response => { setError(null); -- 2.39.2