clubmaster-php/bot.php

29 lines
867 B
PHP
Raw Normal View History

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