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()