]> git.localhorst.tv Git - alttp.git/blobdiff - app/Http/Controllers/ChannelController.php
associate user with twitch command
[alttp.git] / app / Http / Controllers / ChannelController.php
index 904cb8ff81ebc0833fc7912aeae96a10edae2ef5..f6840f87f837f27e94dc36d4dad096d8d4a4ba17 100644 (file)
@@ -49,7 +49,7 @@ class ChannelController extends Controller {
                $this->authorize('editRestream', $channel);
                $channel->join = true;
                $channel->save();
-               TwitchBotCommand::join($channel->twitch_chat);
+               TwitchBotCommand::join($channel->twitch_chat, $request->user());
                return $channel->toJson();
        }
 
@@ -60,7 +60,7 @@ class ChannelController extends Controller {
                $this->authorize('editRestream', $channel);
                $channel->join = false;
                $channel->save();
-               TwitchBotCommand::part($channel->twitch_chat);
+               TwitchBotCommand::part($channel->twitch_chat, $request->user());
                return $channel->toJson();
        }