diff --git a/src/Handlers/Artisan.php b/src/Handlers/Artisan.php deleted file mode 100644 index 45cfd73..0000000 --- a/src/Handlers/Artisan.php +++ /dev/null @@ -1,22 +0,0 @@ -dispatch(new ArtisanJob()); - - return $this->respondToSlack('Performing artisan command...'); - } - - public function canHandle(Request $request): bool - { - return starts_with($request->text, 'artisan'); - } -} diff --git a/src/Jobs/ArtisanJob.php b/src/Jobs/ArtisanJob.php deleted file mode 100644 index 59fec31..0000000 --- a/src/Jobs/ArtisanJob.php +++ /dev/null @@ -1,28 +0,0 @@ -request->text, 8); - - try { - Artisan::call($artisanCommand, []); - - $this->respondToSlack(Artisan::output())->send(); - } catch (CommandNotFoundException $exception) { - $this->respondToSlack('Whoops... something went wrong!') - ->withAttachment(Attachment::create() - ->setColor('danger') - ->setText("The Artisan command `{$artisanCommand}` does not exist.") - ) - ->send(); - } - } -}