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);
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) == '#') {