fix issue where help command crashes bot
This commit is contained in:
parent
0a66ed4fb8
commit
08a98febca
@ -154,7 +154,7 @@ class Bot(irc.bot.SingleServerIRCBot):
|
||||
c.quit("See y'all later!")
|
||||
quit()
|
||||
elif cmd == '!help':
|
||||
helplist = sorted([i for i in self.cmds])
|
||||
helplist = sorted([i for i in pinhook.plugin.cmds])
|
||||
msg = ', '.join(helplist)
|
||||
c.privmsg(chan, 'Available commands: {}'.format(msg))
|
||||
elif cmd == '!reload' and nick in self.ops:
|
||||
|
2
setup.py
2
setup.py
@ -72,7 +72,7 @@ class UploadCommand(Command):
|
||||
# Where the magic happens:
|
||||
setup(
|
||||
name=NAME,
|
||||
version='1.4.1',
|
||||
version='1.4.2',
|
||||
description=DESCRIPTION,
|
||||
long_description=long_description,
|
||||
author=AUTHOR,
|
||||
|
Loading…
x
Reference in New Issue
Block a user