return $this->sendChannel($channel);
}
+ public function chatBotLog(Request $request, Channel $channel) {
+ $this->authorize('editRestream', $channel);
+ $log = $channel->chat_bot_logs()
+ ->with('origin')
+ ->orderBy('created_at', 'DESC')
+ ->limit(150)
+ ->get();
+ return $log->values()->toJson();
+ }
+
public function chatSettings(Request $request, Channel $channel) {
if (!$channel->twitch_chat) {
throw new \Exception('channel has no twitch chat set');