diff options
author | 2023-05-01 14:20:31 +0100 | |
---|---|---|
committer | 2023-05-06 13:20:46 +0100 | |
commit | 64e1ac315daf4d17da02790859baebbbbb7bdfc4 (patch) | |
tree | 15c3e2973685408b11272a34af1bc2de58580e28 /bot/__main__.py | |
parent | update Categories (diff) |
update Client constants
This also renames the Client class to Bot, to align better with Python.
Diffstat (limited to 'bot/__main__.py')
-rw-r--r-- | bot/__main__.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bot/__main__.py b/bot/__main__.py index d39e93bf..970614ce 100644 --- a/bot/__main__.py +++ b/bot/__main__.py @@ -62,11 +62,11 @@ async def main() -> None: async with aiohttp.ClientSession() as session: bot.instance = Bot( - guild_id=constants.Client.guild, + guild_id=constants.Bot.guild, http_session=session, redis_session=await _create_redis_session(), - command_prefix=commands.when_mentioned_or(constants.Client.prefix), - activity=discord.Game(name=f"Commands: {constants.Client.prefix}help"), + command_prefix=commands.when_mentioned_or(constants.Bot.prefix), + activity=discord.Game(name=f"Commands: {constants.Bot.prefix}help"), case_insensitive=True, allowed_mentions=discord.AllowedMentions(everyone=False, roles=allowed_roles), intents=intents, @@ -78,10 +78,10 @@ async def main() -> None: channels=constants.WHITELISTED_CHANNELS, roles=constants.STAFF_ROLES, )) - if constants.Client.in_ci: + if constants.Bot.in_ci: await test_bot_in_ci(_bot) else: - await _bot.start(constants.Client.token) + await _bot.start(constants.Bot.token) asyncio.run(main()) |