diff options
author | 2023-06-04 20:34:14 +0100 | |
---|---|---|
committer | 2023-06-04 20:34:14 +0100 | |
commit | 1a362c04eb4d5d8f3c531a590d73cf5d7300ace8 (patch) | |
tree | accbe4d840b036dcc9502eed395f19400f5ad9a3 /dev/bot/__main__.py | |
parent | Merge pull request #175 from python-discord/log-when-waiting-for-guild-to-be-... (diff) | |
parent | Add changelog entry for ruff migration (diff) |
Merge pull request #176 from python-discord/ruff-migration
Ruff migration
Diffstat (limited to 'dev/bot/__main__.py')
-rw-r--r-- | dev/bot/__main__.py | 3 |
1 files changed, 2 insertions, 1 deletions
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(), |