Fix error

This commit is contained in:
Robert Miles 2019-11-06 12:32:07 -05:00
parent 5268fba2da
commit d5c055eb9a
1 changed files with 1 additions and 1 deletions

View File

@ -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)))