From 5adf365d3e9f95c2930e76e8d2c4a6c0e8f94fe3 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Mon, 23 Dec 2024 00:51:27 -0500 Subject: [PATCH] misc cleanup --- nomen/notifications.py | 4 ++-- nomen/utils.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/nomen/notifications.py b/nomen/notifications.py index e046c76..6fb54d7 100644 --- a/nomen/notifications.py +++ b/nomen/notifications.py @@ -90,7 +90,7 @@ async def handle_triggers(ctx, message): AND (notify_self IS 1 OR user_id IS NOT :author) -- Don't notify author unless wanted AND (bots_notify IS 1 OR :is_bot IS NOT 1) -- Don't notify from bots unless wanted AND :author NOT IN ( -- Don't notify if... - SELECT target FROM user_ignores -- Author is ignored in this guilde + SELECT target FROM user_ignores -- Author is ignored in this guild WHERE user_id=user_id AND guild_id=guild_id UNION SELECT target FROM user_blocks -- Author is blocked @@ -304,7 +304,7 @@ class Notifications(Cog): @guild_only() async def ignore(self, ctx, channel): pass - # TODO: Ignore channels + # TODO: Ignore channels and users @ignore.command() @guild_only() diff --git a/nomen/utils.py b/nomen/utils.py index 1dd643a..7186c19 100644 --- a/nomen/utils.py +++ b/nomen/utils.py @@ -190,6 +190,7 @@ async def confirm(ctx, message, delete_msgs=False, response_check=get_positivity pass return reply_bool + def cleanup_code(content): """Automatically removes code blocks from the code.""" # remove ```py\n``` @@ -199,4 +200,5 @@ def cleanup_code(content): # remove `foo` return content.strip("` \n") + # ===== End code borrowed from Avrae =====