diff options
Diffstat (limited to '')
| -rw-r--r-- | dev/bot/__init__.py | 2 | ||||
| -rw-r--r-- | dev/bot/__main__.py | 3 | ||||
| -rw-r--r-- | dev/bot/cog.py | 2 | 
3 files changed, 4 insertions, 3 deletions
| diff --git a/dev/bot/__init__.py b/dev/bot/__init__.py index 6ee1ae47..1c43b1a8 100644 --- a/dev/bot/__init__.py +++ b/dev/bot/__init__.py @@ -21,4 +21,4 @@ class Bot(pydis_core.BotBase):      async def setup_hook(self) -> None:          """Load extensions on startup."""          await super().setup_hook() -        asyncio.create_task(self.load_extensions(sys.modules[__name__])) +        await self.load_extensions(sys.modules[__name__]) diff --git a/dev/bot/__main__.py b/dev/bot/__main__.py index e28be36b..ea74649c 100644 --- a/dev/bot/__main__.py +++ b/dev/bot/__main__.py @@ -7,6 +7,7 @@ import dotenv  from discord.ext import commands  import pydis_core +  from . import Bot  dotenv.load_dotenv() @@ -17,7 +18,7 @@ roles = [int(role) for role in roles.split(",")] if roles else []  bot = Bot(      guild_id=int(os.getenv("GUILD_ID")), -    http_session=None,  # type: ignore # We need to instantiate the session in an async context +    http_session=None,  # type: ignore We need to instantiate the session in an async context      allowed_roles=roles,      command_prefix=commands.when_mentioned_or(os.getenv("PREFIX", "!")),      intents=discord.Intents.all(), diff --git a/dev/bot/cog.py b/dev/bot/cog.py index 7746c54e..0da950f9 100644 --- a/dev/bot/cog.py +++ b/dev/bot/cog.py @@ -12,7 +12,7 @@ class Cog(commands.Cog):      @commands.Cog.listener()      async def on_ready(self) -> None:          """Print a message when the client (re)connects.""" -        print("Client is ready.") +        print("Client is ready.")  # noqa: T201      @commands.command()      async def reload(self, ctx: commands.Context) -> None: | 
