diff options
| author | 2018-07-15 15:19:11 +0100 | |
|---|---|---|
| committer | 2018-07-15 15:19:11 +0100 | |
| commit | d3e8920e2a166752680bb4807ee6dda8a92ef14d (patch) | |
| tree | 77511dbeb4544b7bf5ea4dbf7bfce36d8f618bd1 | |
| parent | Added EventHook.call_for_result to get a result or default from an event (diff) | |
| signature | ||
Use QUOTES.items() in quit.py
| -rw-r--r-- | modules/quit.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/quit.py b/modules/quit.py index 5489b009..b41bb143 100644 --- a/modules/quit.py +++ b/modules/quit.py @@ -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) |
