Compare commits
1 Commits
1b4a0f67da
...
3155be4995
Author | SHA1 | Date | |
---|---|---|---|
3155be4995 |
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user