add debug log and docstring to handle_notification

This commit is contained in:
Infinidoge 2024-12-19 01:11:57 -05:00
parent cabd0bc1c9
commit 8487f60cff
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A

View file

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