diff --git a/src/Console/Commands/SlackSocketClient.php b/src/Console/Commands/SlackSocketClient.php index f111f53..e71f21f 100644 --- a/src/Console/Commands/SlackSocketClient.php +++ b/src/Console/Commands/SlackSocketClient.php @@ -28,15 +28,6 @@ class SlackSocketClient extends Command */ protected $description = 'Start SocketMode Client'; - public function __construct() - { - // Make sure our socket_token is defined - if (! config('slack.socket_token')) - throw new \Exception('SocketMode Client Token not defined.'); - - parent::__construct(); - } - /** * Execute the console command. * @@ -45,6 +36,10 @@ class SlackSocketClient extends Command */ public function handle() { + // Make sure our socket_token is defined + if (! config('slack.socket_token')) + throw new \Exception('SocketMode Client Token not defined.'); + $loop = Loop::get(); $client = new SocketMode($loop);