Merge pull request #2 from benharri/analysis-Xlmy0Q

Apply fixes from StyleCI
This commit is contained in:
Benjamin Harris 2017-05-01 20:42:12 -04:00 committed by GitHub
commit 4b307ac69d
1 changed files with 8 additions and 8 deletions

View File

@ -184,17 +184,17 @@ final class BenBot extends Discord
'description' => 'shows help text',
'usage' => '<command>',
]);
$helpcmd->registerSubCommand('all', function ($msg, $args) {
$helptxts = "";
foreach ($this->cmds as $cmd) {
$helptxts .= ";{$cmd->command}\n";
}
return "```All available BenBot commands:\n\n$helptxts\n-------------------------------------------------------------\n;help [command] to get more information about a specific command```";
}, [
$helpcmd->registerSubCommand('all', function ($msg, $args) {
$helptxts = '';
foreach ($this->cmds as $cmd) {
$helptxts .= ";{$cmd->command}\n";
}
return "```All available BenBot commands:\n\n$helptxts\n-------------------------------------------------------------\n;help [command] to get more information about a specific command```";
}, [
'description' => 'list all commands',
]);
Utils::ping('bot started successfully');
echo PHP_EOL, 'BOT STARTED SUCCESSFULLY', PHP_EOL, PHP_EOL;
});