From f57065670a2d9c41a08ecbc83d4c7605f349895f Mon Sep 17 00:00:00 2001 From: Siphalor Date: Mon, 11 Oct 2021 21:40:00 +0200 Subject: [PATCH] Fix rolling indeces wrapping at the wrong numbers --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index f0442e9..7268e78 100644 --- a/bot.py +++ b/bot.py @@ -762,7 +762,7 @@ def get_quotes_rolling_index(guild_id: int, author: str) -> Optional[int]: rolling_indeces[author] = 0 index = rolling_indeces[author] - rolling_indeces[author] = (index + 1) % len(rolling_indeces) + rolling_indeces[author] = (index + 1) % len(quotes) config_set_raw("guild_quotes_rolling_indeces", rolling_indeces, guild=guild_id) return index