Skip to content

Commit

Permalink
feat: Handle screenshot showing "X is being loaded more than once fro…
Browse files Browse the repository at this point in the history
…m Y"
  • Loading branch information
GeckoEidechse committed Aug 27, 2024
1 parent 07ad580 commit 3424795
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions reaper/cogs/image_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,15 @@
value=information_message,
)

engine_error_loaded_more_than_once = discord.Embed(
description="Found a screenshot showing 'X is being loaded more than once from Y'. This is likely caused by a mod being installed multiple times or a faulty mod. Try disabling all mods except then `Northstar.XYZ` ones and see if the issue still persists.",
color=0x5D3FD3,
)
engine_error_loaded_more_than_once.add_field(
name="",
value=information_message,
)

tcp_port_info = discord.Embed(
description="Detect mention of a TCP port in the image. Should this be about forwarding then note that only the UDP port needs to forwarded. Forwarding TCP is no longer needed for hosting a Northstar server and has no effect since over a year.",
color=0x5D3FD3,
Expand Down Expand Up @@ -169,6 +178,12 @@ async def handle_response(text: str, message):
)
return

if re.search("is.being.loaded.more.than.once.from", text.lower()):
await message.channel.send(
embed=engine_error_loaded_more_than_once, reference=message
)
return

await message.channel.send(embed=engine_error, reference=message)
return

Expand Down

0 comments on commit 3424795

Please sign in to comment.