X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FTwitchBotCommands%2FBaseCommand.php;fp=app%2FTwitchBotCommands%2FBaseCommand.php;h=e2df728d0eb76a59970dff23aca17ed0a13705e3;hb=8645b77ea2dc402f0265e1c8022ba18302506ca1;hp=d803fb739defe022977c6b4cda7c017797695507;hpb=907f392f8d2fbadb3f53a277cc90ae080da6d476;p=alttp.git diff --git a/app/TwitchBotCommands/BaseCommand.php b/app/TwitchBotCommands/BaseCommand.php index d803fb7..e2df728 100644 --- a/app/TwitchBotCommands/BaseCommand.php +++ b/app/TwitchBotCommands/BaseCommand.php @@ -44,6 +44,10 @@ abstract class BaseCommand { return User::findOrFail($this->getParameter('user')); } + protected function getExecutingUser() { + return $this->command->user; + } + protected function hasParameter($name) { return array_key_exists($name, $this->command->parameters); }