Use QUOTES.items() in quit.py
This commit is contained in:
parent
68298bbccf
commit
d3e8920e2a
1 changed files with 2 additions and 3 deletions
|
@ -59,7 +59,6 @@ class Module(object):
|
||||||
bot.events.on("get.quit-quote").hook(self.quote)
|
bot.events.on("get.quit-quote").hook(self.quote)
|
||||||
|
|
||||||
def quote(self, event):
|
def quote(self, event):
|
||||||
quote = random.choice(list(QUOTES))
|
quote = random.choice(list(QUOTES.items()))
|
||||||
return (" - " if QUOTES[quote] else "").join([quote,
|
return (" - " if quote[1] else "").join(quote)
|
||||||
QUOTES[quote]])
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue