misc cleanup

This commit is contained in:
Infinidoge 2024-12-23 00:51:27 -05:00
parent 1cb36d41ae
commit 5adf365d3e
Signed by: Infinidoge
SSH key fingerprint: SHA256:GT2StvPQMMfFHyiiFJymQxfTG/z6EWLJ6NWItf5K5sA
2 changed files with 4 additions and 2 deletions

View file

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

View file

@ -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 =====