Added proper logging and error handling

This commit is contained in:
2020-12-27 19:26:38 +00:00
parent 03cd015f12
commit 33eb4021fa
10 changed files with 160 additions and 21 deletions

View File

@@ -2,6 +2,7 @@
namespace nogueiracodes\RaspberryBot\Bot\Commands;
use Analog\Analog;
use Exception;
use nogueiracodes\RaspberryBot\Core\Interfaces\Command;
use nogueiracodes\RaspberryBot\Traits\HasSignature;
@@ -15,6 +16,11 @@ class NumberFact implements Command
public $signature = "numberfact {number: The number for which you want facts for.}";
public function __construct()
{
Analog::log('Commands: Loaded NumberFact!');
}
public function run(array $parameters)
{