From 03cd015f12118c1a159fb8a877f7589beae97f9e Mon Sep 17 00:00:00 2001 From: Miguel N Date: Sun, 27 Dec 2020 18:45:28 +0000 Subject: [PATCH] Updated command signature --- src/Bot/Commands/Gimme.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Bot/Commands/Gimme.php b/src/Bot/Commands/Gimme.php index 2e51cc1..7e466c9 100644 --- a/src/Bot/Commands/Gimme.php +++ b/src/Bot/Commands/Gimme.php @@ -11,7 +11,7 @@ class Gimme implements Command { use HasSignature; - public $signature = "gimme {what: What to give you. Can be a cat pic!} {quantity: How many cat pictures do you want?}"; + public $signature = "gimme {thing: What to give you} {quantity: How many cat pictures}"; private $cats; @@ -29,7 +29,7 @@ class Gimme implements Command throw new Exception('Sorry, but I can\'t send you more than 25 cat pictures at a time. What a cat lover!'); } - switch($parameters['what']) { + switch($parameters['thing']) { case "cat": @@ -37,7 +37,7 @@ class Gimme implements Command try { // Many pictures will return a list of pictures, separated by new lines - return $this->cats->getCatPicture($parameters['quantity'], "small"); + return $this->cats->getCatPicture($parameters['what'], "small"); } catch (Exception $ex) {