super3 / IRC-Bot

A very little basic IRCBot that will get improved over the next time.
http://www.wildphp.com
102 stars 47 forks source link

Help command #51

Closed NanoSector closed 9 years ago

NanoSector commented 9 years ago

I've written a help command, which is more extensive than the regular "This is the commands the bot has" welcome message.

My implementation goes a bit further than listing the commands; !help without arguments lists all commands, !help with one argument gives information about a command.

E.g.

<NanoSector> !help
<FatalException> Available commands: Joke, Poke, About, Wiki, Help, Ping, Issue
<NanoSector> !help issue
<FatalException> Issue: Show information about GitHub issues and pull requests.
<FatalException> Command usage: !issue [issue no. you wish to look up]

This will require changing parts of the command structure (adding a new $usage variable which replaces $help, where $help becomes the command description). This also requires minor changes for the bot itself. I'll make a pull request later today, or later this week. Help me remind if I forget.