1
Fork 0
mirror of https://github.com/wlinator/luminara.git synced 2024-10-02 18:03:12 +00:00

Convert some plain text into a locale string

This commit is contained in:
wlinator 2024-09-22 18:01:19 +02:00
parent ed1ffed39a
commit 8b59351e2b
2 changed files with 2 additions and 1 deletions

View file

@ -215,6 +215,7 @@
"info_system": "**System:** {0} ({1})\n", "info_system": "**System:** {0} ({1})\n",
"info_uptime": "**Uptime:** <t:{0}:R>\n", "info_uptime": "**Uptime:** <t:{0}:R>\n",
"inspirobot_author": "InspiroBot (AI Generated)", "inspirobot_author": "InspiroBot (AI Generated)",
"inspirobot_failed_to_get_image": "Failed to get image URL from InspiroBot: {0}",
"intro_content": "Introduction by {0}", "intro_content": "Introduction by {0}",
"intro_content_footer": "Type .intro in my DMs to start", "intro_content_footer": "Type .intro in my DMs to start",
"intro_no_channel": "the introduction channel is not set, please contact a moderator.", "intro_no_channel": "the introduction channel is not set, please contact a moderator.",

View file

@ -31,7 +31,7 @@ class Inspirobot(commands.Cog):
try: try:
image_url = await InspiroBot().get_image() image_url = await InspiroBot().get_image()
except Exception as e: except Exception as e:
msg = f"Failed to get image URL from Inspirobot: {e}" msg = CONST.STRINGS["inspirobot_failed_to_get_image"].format(e)
raise LumiException(msg) from e raise LumiException(msg) from e
embed = Builder.create_embed( embed = Builder.create_embed(