From 613af58872e9f312691a0b20c265613d55154d98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Fri, 11 May 2018 11:04:17 +0200 Subject: [PATCH] Return randomly selected quote with !findquote --- bot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bot.py b/bot.py index bc16bd8..25137e0 100644 --- a/bot.py +++ b/bot.py @@ -132,8 +132,7 @@ class TwitchBot(irc.bot.SingleServerIRCBot): try: quotes = self.get(dict( filter=filter, - sort_by='id', - sort_order='desc', + sort_order='random', page_size=1)).json() quote = quotes[0] except (requests.exceptions.HTTPError, IndexError):