fix issue where help command crashes bot

pull/29/head v1.4.2
Mallory Hancock 2018-03-15 15:15:10 -07:00
parent 0a66ed4fb8
commit 08a98febca
2 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ class Bot(irc.bot.SingleServerIRCBot):
c.quit("See y'all later!") c.quit("See y'all later!")
quit() quit()
elif cmd == '!help': elif cmd == '!help':
helplist = sorted([i for i in self.cmds]) helplist = sorted([i for i in pinhook.plugin.cmds])
msg = ', '.join(helplist) msg = ', '.join(helplist)
c.privmsg(chan, 'Available commands: {}'.format(msg)) c.privmsg(chan, 'Available commands: {}'.format(msg))
elif cmd == '!reload' and nick in self.ops: elif cmd == '!reload' and nick in self.ops:

View File

@ -72,7 +72,7 @@ class UploadCommand(Command):
# Where the magic happens: # Where the magic happens:
setup( setup(
name=NAME, name=NAME,
version='1.4.1', version='1.4.2',
description=DESCRIPTION, description=DESCRIPTION,
long_description=long_description, long_description=long_description,
author=AUTHOR, author=AUTHOR,