Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bot/plugins/utils/option_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async def option_config_cmd(client: Client, message: Message) -> Message | None:

if not cmd[1:]:
options_configs = options.settings.model_dump()
format_options = "\n".join(f"**{key}** ```\n{value}```" for key, value in options_configs.items())
format_options = "\n".join(f"`/option {key}`\n```\n{value}\n```" for key, value in options_configs.items())
func_doc = option_config_cmd.__doc__
return await message.reply(
text=f"{format_options}\n\n{cleandoc(func_doc) if func_doc else ''}",
Expand Down Expand Up @@ -63,7 +63,7 @@ async def option_config_cmd(client: Client, message: Message) -> Message | None:

update = await options.update_settings(key=key, value=change_value)
options_configs = update.model_dump()
format_options = "\n".join(f"**{key}** ```\n{value}```" for key, value in options_configs.items())
format_options = "\n".join(f"`/option {key}`\n```\n{value}\n```" for key, value in options_configs.items())

final_message = await message.reply(
text=f"Updated:\n{format_options}\n\n__Note: if you see number instead of text it means it set a message to copy (this happens if you use reply to a message while setting the option key)__", # noqa: E501
Expand Down