diff --git a/commands/generate.py b/commands/generate.py index cacfdbb..efc03fc 100644 --- a/commands/generate.py +++ b/commands/generate.py @@ -33,6 +33,7 @@ GENERATORS = utils.LazyLoadedDict(get_generator) def generate(bot,channel,nick,generator,count="1"): if generator not in GENERATORS_LIST: bot.say(channel,"{}: Invalid generator!".format(nick)) + return count = int(count) res = [GENERATORS[generator]() for x in range(count)] if generator!="idea":