Skip to content

Commit

Permalink
logfilereader: Fix macOS version detection & Reply to analyzed log (#45)
Browse files Browse the repository at this point in the history
* Fix macOS version detection correctly this time

* Reply to the message with the uploaded log

* Apply black formatting
  • Loading branch information
TSRBerry committed Apr 28, 2023
1 parent 45538ee commit 5be9915
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions robocop_ng/cogs/logfilereader.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ def mods_information(log_file=log_file):
old_mainline_version = re.compile(r"^\d\.\d\.(\d){4}$")
pr_version = re.compile(r"^\d\.\d\.\d\+([a-f]|\d){7}$")
ldn_version = re.compile(r"^\d\.\d\.\d\-ldn\d+\.\d+(?:\.\d+|$)")
mac_version = re.compile(r"^\d\.\d\.\d\-macos\d+\.\d+(?:\.\d+|$)")
mac_version = re.compile(r"^\d\.\d\.\d\-macos\d+(?:\.\d+(?:\.\d+|$)|$)")

is_channel_allowed = False

Expand Down Expand Up @@ -813,7 +813,9 @@ async def analyse_log_message(self, message: Message, attachment_index=0):
True for elem in self.uploaded_log_info if filename in elem.values()
]
if not any(uploaded_logs_exist):
reply_message = await message.channel.send("Log detected, parsing...")
reply_message = await message.channel.send(
"Log detected, parsing...", reference=message
)
try:
embed = await self.log_file_read(message)
if "Ryujinx_" in filename:
Expand Down

0 comments on commit 5be9915

Please sign in to comment.