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

@@ -1,6 +1,7 @@
#!/usr/bin/env php
<?php
use Analog\Analog;
use nogueiracodes\RaspberryBot\Bot\Actions\MessageLogger;
use nogueiracodes\RaspberryBot\Bot\Commands\Gimme;
use nogueiracodes\RaspberryBot\Bot\Commands\MinecraftInfo;
@@ -13,9 +14,7 @@ require 'src/Bot/init.php';
$raspberryBot = new RaspberryBot();
echo 'RaspberryBot v.0.1.0. Loading commands and actions.' . PHP_EOL;
echo 'This console will now display logging output from actions and commands sent by users.' . PHP_EOL;
Analog::info('RaspberryBot v.0.1.0 ready. Loading commands and actions.');
$raspberryBot
->initialize()
->addCommand([