Added a stub for #11 and slightly improved typing

This commit is contained in:
2025-04-27 22:05:34 +02:00
parent 9a5edbaa4d
commit 923173ebe8
3 changed files with 9 additions and 5 deletions

View File

@@ -1,7 +1,6 @@
from logging import Logger
from discord import Activity, ActivityType, Cog
from discord.ext import commands
from discord import Activity, ActivityType, Cog, Member
from classes.pycord_bot import PycordBot
from modules.utils import get_logger
@@ -13,7 +12,7 @@ class CogUtility(Cog):
def __init__(self, bot: PycordBot):
self.bot: PycordBot = bot
@commands.Cog.listener()
@Cog.listener()
async def on_ready(self) -> None:
"""Listener for the event when bot connects to Discord and becomes "ready"."""
logger.info("Logged in as %s", self.bot.user)
@@ -42,6 +41,11 @@ class CogUtility(Cog):
logger.info("Set activity type to %s with message %s", activity_type, activity_message)
# TODO Implement #11
@Cog.listener()
async def on_member_join(self, member: Member) -> None:
pass
def setup(bot: PycordBot) -> None:
bot.add_cog(CogUtility(bot))