modinfo = {
'author': 'Erebus Team',
'license': 'public domain',
- 'compatible': [2],
+ 'compatible': [0],
'depends': [],
'softdeps': [],
}
lib = modlib.modlib(__name__)
def modstart(parent, *args, **kwargs):
if parent.cfg.getboolean('erebus', 'nofakelag'):
- lib.hook(needchan=False)(lib.help('[@<module>|<command>]', 'lists commands or describes a command', 'with @<module>, lists all commands in <module>')(help_nolag))
+ lib.hook('help', needchan=False)(lib.help('[@<module>|<command>]', 'lists commands or describes a command', 'with @<module>, lists all commands in <module>')(help_nolag))
else:
lib.hook(needchan=False)(lib.help("<command>", "describes a command")(help))
return lib.modstart(parent, *args, **kwargs)
@lib.hook(needchan=False)
@lib.help(None, "provides command list")
def showcommands(bot, user, chan, realtarget, *args):
- if bool(int(bot.parent.cfg.get('help', 'autogen', default=0))):
+ if bot.parent.cfg.getboolean('help', 'autogen'):
try:
_genhelp(bot, user, chan, realtarget, *args)
except: pass