2020-12-25 16:38:27 +00:00
|
|
|
#!/usr/bin/env php
|
2020-12-19 15:51:19 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use nogueiracodes\RaspberryBot\Bot\Actions\MessageLogger;
|
|
|
|
use nogueiracodes\RaspberryBot\Bot\Commands\MinecraftInfo;
|
|
|
|
use nogueiracodes\RaspberryBot\Bot\Commands\NumberFact;
|
|
|
|
use nogueiracodes\RaspberryBot\Bot\Commands\SimplePlayback;
|
2020-12-25 16:38:27 +00:00
|
|
|
use nogueiracodes\RaspberryBot\Bot\Commands\Help;
|
2020-12-19 15:51:19 +00:00
|
|
|
use nogueiracodes\RaspberryBot\Core\RaspberryBot;
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
$raspberryBot
|
|
|
|
->initialize()
|
|
|
|
->addCommand([
|
|
|
|
new SimplePlayback,
|
|
|
|
new NumberFact,
|
2020-12-25 16:38:27 +00:00
|
|
|
new MinecraftInfo,
|
|
|
|
new Help
|
2020-12-19 15:51:19 +00:00
|
|
|
])
|
|
|
|
->addAction(new MessageLogger)
|
|
|
|
->setCommandPrefix($_ENV['COMMAND_PREFIX'])
|
2020-12-25 16:38:27 +00:00
|
|
|
->run();
|