From 5be99155012576cb4455acd87a67a1aa0769bac8 Mon Sep 17 00:00:00 2001 From: TSRBerry <20988865+TSRBerry@users.noreply.github.com> Date: Fri, 28 Apr 2023 22:38:23 +0200 Subject: [PATCH] logfilereader: Fix macOS version detection & Reply to analyzed log (#45) * Fix macOS version detection correctly this time * Reply to the message with the uploaded log * Apply black formatting --- robocop_ng/cogs/logfilereader.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/robocop_ng/cogs/logfilereader.py b/robocop_ng/cogs/logfilereader.py index c840005..12bbceb 100644 --- a/robocop_ng/cogs/logfilereader.py +++ b/robocop_ng/cogs/logfilereader.py @@ -662,7 +662,7 @@ class LogFileReader(Cog): 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 @@ -813,7 +813,9 @@ class LogFileReader(Cog): 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: