]> jfr.im git - erebus.git/commitdiff
trivia - add args requirements for findq/findqre, fix help for findq
authorzonidjan <redacted>
Thu, 23 May 2019 15:43:02 +0000 (10:43 -0500)
committerzonidjan <redacted>
Thu, 23 May 2019 15:43:02 +0000 (10:43 -0500)
modules/trivia.py

index 7fdab31858f727b6330c9ef1e757302ebbcb54c4..4256031af1ff4b91aa60f3b56881bc3d230c0335 100644 (file)
@@ -678,7 +678,8 @@ def questionpause(bot, user, chan, realtarget, *args):
                bot.msg(user, "Failed to set questionpause.")
 
 @lib.hook(glevel=1, needchan=False)
-@lib.help("<full question>", "finds a qid given a complete question")
+@lib.help("[@category] <full question>", "finds a qid given a complete question")
+@lib.argsGE(1)
 def findq(bot, user, chan, realtarget, *args):
        args = list(args)
        if args[0].startswith("@"):
@@ -702,6 +703,7 @@ def findq(bot, user, chan, realtarget, *args):
 
 @lib.hook(glevel=1, needchan=False)
 @lib.help("[@<category>] <regex>", "finds a qid given a regex or partial question")
+@lib.argsGE(1)
 def findqre(bot, user, chan, realtarget, *args):
        args = list(args)
        if args[0].startswith("@"):