From 5093736e61d9926acbdef50061b8ba5d333123dd Mon Sep 17 00:00:00 2001 From: Siphalor Date: Thu, 7 Oct 2021 14:08:14 +0200 Subject: [PATCH] Fix quote rolling index --- bot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 9218846..664158a 100644 --- a/bot.py +++ b/bot.py @@ -764,7 +764,7 @@ def get_quotes_rolling_index(guild_id: int, author: str) -> Optional[int]: index = rolling_indeces[author] rolling_indeces[author] = index + 1 - config_set_raw("guild_quotes_rolling_indeces", guild=guild_id) + config_set_raw("guild_quotes_rolling_indeces", rolling_indeces, guild=guild_id) return index @@ -856,7 +856,8 @@ async def quote_random_slash(ctx: SlashContext, author: Optional[str] = None, tt option_type=SlashCommandOptionType.BOOLEAN, required=False ) - ] + ], + guild_ids=slash_guild_ids ) async def quote_tell_slash(ctx: SlashContext, author: str, prefix: Optional[str] = None, index: Optional[int] = None, tts: Optional[bool] = None):