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