Added .help command that replaces the default help

master
mutantmonkey 2010-11-12 10:34:22 -05:00
parent a28759c83d
commit db3724d9cf
1 changed files with 8 additions and 6 deletions

View File

@ -32,12 +32,14 @@ commands.priority = 'low'
def help(phenny, input): def help(phenny, input):
response = ( response = (
'Hi, I\'m a bot. Say ".commands" to me in private for a list ' + "Hey there, I'm the bot for #vtluug. Say \".commands\" to me " +
'of my commands, or see http://inamidst.com/phenny/ for more ' + "in private for a list of my commands or check out my wiki " +
'general details. My owner is %s.' "page at %s. My owner is %s."
) % phenny.config.owner ) % (phenny.config.helpurl, phenny.config.owner)
phenny.reply(response) #phenny.reply(response)
help.rule = ('$nick', r'(?i)help(?:[?!]+)?$') phenny.say(response)
#help.rule = ('$nick', r'(?i)help(?:[?!]+)?$')
help.commands = ['help']
help.priority = 'low' help.priority = 'low'
def stats(phenny, input): def stats(phenny, input):