- try:
- filepath = bot.parent.cfg.get('help', 'path', default='./help/%d.txt')
- for level in range(-1, 101):
+ module = None
+ minlevel = -1
+ maxlevel = 100
+ filepath = bot.parent.cfg.get('help', 'path', default='./help/%d.txt')
+ for arg in args:
+ if arg.startswith("@"):
+ module = arg[1:]
+ elif arg.startswith("#") and user.glevel >= lib.ADMIN:
+ minlevel = maxlevel = int(arg[1:])
+ else:
+ filepath = arg
+ if minlevel != maxlevel:
+ minlevel = maxlevel
+ for level in range(minlevel, maxlevel+1):
+ if '%d' in filepath: