3 namespace App\Console\Commands;
6 use Illuminate\Console\Command;
7 use React\EventLoop\Loop;
9 class DiscortBotCommand extends Command
12 * The name and signature of the console command.
16 protected $signature = 'discord:bot';
19 * The console command description.
23 protected $description = 'Runs the discord bot';
26 * Execute the console command.
30 public function handle()
32 $discord = new Discord([
33 'token' => config('discord.token'),
35 $discord->on('ready', function (Discord $discord) {
37 $discord->getLoop()->addSignal(SIGINT, function() use ($discord) {