From 5eb762d9fe03ed4bc10f81429027081b7c216dec Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Wed, 31 Jan 2024 13:07:48 -0500 Subject: [PATCH] fix(backup): fixed extract_json_from_codeblock --- backup/backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup/backup.py b/backup/backup.py index f499064..d70093d 100644 --- a/backup/backup.py +++ b/backup/backup.py @@ -74,7 +74,7 @@ class Backup(commands.Cog): await ctx.send(error(f"You do not have the `Downloader` cog loaded. Please run `{ctx.prefix}load downloader` and try again.")) return - def extract_json_from_codeblock(text): + def extract_json_from_codeblock(self, text): match = re.match(r"```(?:\w+)?\n(.*?)\n```", text, re.DOTALL) if match: return match.group(1).strip()