X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FTwitchBotCommands%2FBaseCommand.php;h=e2df728d0eb76a59970dff23aca17ed0a13705e3;hb=2d1c02504d80ad0e2c754f31f3b17d8c9ea60682;hp=d803fb739defe022977c6b4cda7c017797695507;hpb=ebdf8e5f6761de2abd85b01096a67dee62d7d4aa;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); }