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

Merge pull request #53 from wlinator/inspirobot-fix

Fix
This commit is contained in:
wlinator 2024-09-22 18:02:18 +02:00 committed by GitHub
commit 2a177c2f75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -215,6 +215,7 @@
"info_system": "**System:** {0} ({1})\n",
"info_uptime": "**Uptime:** <t:{0}:R>\n",
"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_footer": "Type .intro in my DMs to start",
"intro_no_channel": "the introduction channel is not set, please contact a moderator.",

View file

@ -31,7 +31,7 @@ class Inspirobot(commands.Cog):
try:
image_url = await InspiroBot().get_image()
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
embed = Builder.create_embed(