From 8487f60cff963402ad15f30bb6060b23e306b3ad Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Thu, 19 Dec 2024 01:11:57 -0500 Subject: [PATCH] add debug log and docstring to handle_notification --- nomen/notifications.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nomen/notifications.py b/nomen/notifications.py index 9ea4839..95e4461 100644 --- a/nomen/notifications.py +++ b/nomen/notifications.py @@ -11,6 +11,12 @@ log.setLevel(logging.INFO) async def handle_notification(db_updates, ctx, message, keyword, user_id): + """ + Async task to dispatch a notification + """ + + log.debug(f"- Handling `{keyword}` for {user_id}") + member = await ctx.guild.getch_member(user_id) if not await can_view(ctx, member):