Use QUOTES.items() in quit.py

This commit is contained in:
jesopo 2018-07-15 15:19:11 +01:00
parent 68298bbccf
commit d3e8920e2a

View file

@ -59,7 +59,6 @@ class Module(object):
bot.events.on("get.quit-quote").hook(self.quote)
def quote(self, event):
quote = random.choice(list(QUOTES))
return (" - " if QUOTES[quote] else "").join([quote,
QUOTES[quote]])
quote = random.choice(list(QUOTES.items()))
return (" - " if quote[1] else "").join(quote)