forked from khuxkm/cosmicbot
Fix error
This commit is contained in:
parent
5268fba2da
commit
d5c055eb9a
|
@ -34,7 +34,7 @@ def generate(bot,channel,nick,generator,count="1"):
|
||||||
if generator not in GENERATORS_LIST:
|
if generator not in GENERATORS_LIST:
|
||||||
bot.say(channel,"{}: Invalid generator!".format(nick))
|
bot.say(channel,"{}: Invalid generator!".format(nick))
|
||||||
count = int(count)
|
count = int(count)
|
||||||
res = [GENERATOR[generator]() for x in range(count)]
|
res = [GENERATORS[generator]() for x in range(count)]
|
||||||
if generator!="idea":
|
if generator!="idea":
|
||||||
res = [titlecase.titlecase(x) for x in res]
|
res = [titlecase.titlecase(x) for x in res]
|
||||||
bot.say(channel,"{}: {}".format(nick,",".join(res)))
|
bot.say(channel,"{}: {}".format(nick,",".join(res)))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user