Compare commits

..

1 Commits

Author SHA1 Message Date
3155be4995 added slur.py 2018-07-21 13:15:00 -04:00

View File

@ -30,10 +30,10 @@ def slur(bot, trigger):
[RACE] - specifies a particular race to pick on.
"""
if trigger.group(3):
if trigger.group(2):
slur = bot.db.execute(
"SELECT * FROM `slur` WHERE `race` = ? COLLATE NOCASE " \
+ "ORDER BY RANDOM() LIMIT 1", (trigger.group(3),)).fetchone()
+ "ORDER BY RANDOM() LIMIT 1", (trigger.group(2),)).fetchone()
else:
slur = bot.db.execute(
"SELECT * FROM `slur` ORDER BY RANDOM() LIMIT 1").fetchone()