Fix quote rolling index

This commit is contained in:
2021-10-07 14:08:14 +02:00
parent 155248a3d2
commit 5093736e61

5
bot.py
View File

@@ -764,7 +764,7 @@ def get_quotes_rolling_index(guild_id: int, author: str) -> Optional[int]:
index = rolling_indeces[author] index = rolling_indeces[author]
rolling_indeces[author] = index + 1 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 return index
@@ -856,7 +856,8 @@ async def quote_random_slash(ctx: SlashContext, author: Optional[str] = None, tt
option_type=SlashCommandOptionType.BOOLEAN, option_type=SlashCommandOptionType.BOOLEAN,
required=False required=False
) )
] ],
guild_ids=slash_guild_ids
) )
async def quote_tell_slash(ctx: SlashContext, author: str, prefix: Optional[str] = None, index: Optional[int] = None, async def quote_tell_slash(ctx: SlashContext, author: str, prefix: Optional[str] = None, index: Optional[int] = None,
tts: Optional[bool] = None): tts: Optional[bool] = None):