--- /dev/null
+<?php
+
+namespace App\Console\Commands;
+
+use App\TwitchBot\TwitchBot;
+use Illuminate\Console\Command;
+
+class TwitchBotCommand extends Command {
+
+ /**
+ * The name and signature of the console command.
+ *
+ * @var string
+ */
+ protected $signature = 'twitch:bot';
+
+ /**
+ * The console command description.
+ *
+ * @var string
+ */
+ protected $description = 'Runs the twitch bot';
+
+ /**
+ * Execute the console command.
+ *
+ * @return int
+ */
+ public function handle() {
+ $bot = new TwitchBot();
+
+ $bot->getLoop()->addSignal(SIGINT, function() use ($bot) {
+ $bot->stop();
+ });
+
+ $bot->run();
+
+ return 0;
+ }
+
+}
+
+?>