diff --git a/commands/generate.py b/commands/generate.py index d123292..8960ec9 100644 --- a/commands/generate.py +++ b/commands/generate.py @@ -34,7 +34,7 @@ def generate(bot,channel,nick,generator,count="1"): if generator not in GENERATORS_LIST: bot.say(channel,"{}: Invalid generator!".format(nick)) count = int(count) - res = [GENERATOR[generator]() for x in range(count)] + res = [GENERATORS[generator]() for x in range(count)] if generator!="idea": res = [titlecase.titlecase(x) for x in res] bot.say(channel,"{}: {}".format(nick,",".join(res)))