Added missing help command

This commit adds the missing help command for the bot.
This commit is contained in:
2020-12-25 16:38:27 +00:00
parent 4911163c71
commit 2a2d2a0b7e
4 changed files with 55 additions and 2 deletions

7
bot.php Normal file → Executable file
View File

@@ -1,9 +1,11 @@
#!/usr/bin/env php
<?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;
use nogueiracodes\RaspberryBot\Bot\Commands\Help;
use nogueiracodes\RaspberryBot\Core\RaspberryBot;
require 'src/Bot/init.php';
@@ -18,8 +20,9 @@ $raspberryBot
->addCommand([
new SimplePlayback,
new NumberFact,
new MinecraftInfo
new MinecraftInfo,
new Help
])
->addAction(new MessageLogger)
->setCommandPrefix($_ENV['COMMAND_PREFIX'])
->run();
->run();