forked from spacejewelhosting/raspberry-bot
Added proper logging and error handling
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user