Fix quote rolling index
This commit is contained in:
5
bot.py
5
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):
|
||||
|
||||
Reference in New Issue
Block a user