From a037cff20e2f1d4bed29cd46f613fbc9a7096ee5 Mon Sep 17 00:00:00 2001 From: Steele Farnsworth Date: Thu, 30 Jan 2025 23:07:40 -0500 Subject: Add newline before if statement. --- bot/exts/filtering/filtering.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bot/exts/filtering/filtering.py b/bot/exts/filtering/filtering.py index b1cfa9e23..0d07bfebc 100644 --- a/bot/exts/filtering/filtering.py +++ b/bot/exts/filtering/filtering.py @@ -237,6 +237,7 @@ class Filtering(Cog): await _extract_text_file_content(a) for a in msg.attachments if "charset" in a.content_type ] + if text_contents: attachment_content = "\n\n".join(text_contents) ctx = ctx.replace(content=f"{ctx.content}\n\n{attachment_content}") -- cgit v1.2.3