namespace App\TwitchBot;
+use App\Models\ChatLog;
+
class IRCMessage {
public $command = null;
return $str;
}
+ public function log() {
+ ChatLog::create([
+ 'command' => $this->command,
+ 'nick' => $this->nick,
+ 'params' => $this->params,
+ 'tags' => $this->tags,
+ ]);
+ }
+
public static function join($channels) {
$msg = new IRCMessage();
$msg->command = 'JOIN';