X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FConsole%2FCommands%2FTwitchBotCommand.php;fp=app%2FConsole%2FCommands%2FTwitchBotCommand.php;h=55ae34b8f7b3dc9c4534f1ba7d6f0b42a8104627;hb=c4835dcd53401c4e618ba077726d655d476a82c8;hp=0000000000000000000000000000000000000000;hpb=61a4fe3d05b90438d40ad94a9870f3ee409361fa;p=alttp.git diff --git a/app/Console/Commands/TwitchBotCommand.php b/app/Console/Commands/TwitchBotCommand.php new file mode 100644 index 0000000..55ae34b --- /dev/null +++ b/app/Console/Commands/TwitchBotCommand.php @@ -0,0 +1,43 @@ +getLoop()->addSignal(SIGINT, function() use ($bot) { + $bot->stop(); + }); + + $bot->run(); + + return 0; + } + +} + +?>