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);
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 {
} else {
$str .= ';';
}
+ // TODO: this may need some kind of encoding?
$str .= $name.'=';
if (!empty($value)) {
$str .= $value;
namespace App\TwitchBot;
use App\Models\ChatLog;
-use Illuminate\Support\Arr;
use Illuminate\Support\Str;
class TokenizedMessage {
}
axios
.get(`/api/chatbotlogs/`, {
- signal: ctrl.signal
+ signal: ctrl.signal,
})
.then(response => {
setError(null);