diff options
author | 2023-05-01 14:38:18 +0100 | |
---|---|---|
committer | 2023-05-06 13:20:47 +0100 | |
commit | a976c7888423e657f946ac567695c7da23e9f9a7 (patch) | |
tree | 764fcaf5a3891378578efc5a70de894a160ccedc /bot/__main__.py | |
parent | Revert "redeem lost bot references" (diff) |
revert renaming of Client to Bot
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 bd3df263..829819fb 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.Bot.guild, + guild_id=constants.Client.guild, http_session=session, redis_session=await _create_redis_session(), - command_prefix=commands.when_mentioned_or(constants.Bot.prefix), - activity=discord.Game(name=f"Commands: {constants.Bot.prefix}help"), + command_prefix=commands.when_mentioned_or(constants.Client.prefix), + activity=discord.Game(name=f"Commands: {constants.Client.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.Bot.in_ci: + if constants.Client.in_ci: await test_bot_in_ci(_bot) else: - await _bot.start(constants.Bot.token) + await _bot.start(constants.Client.token) asyncio.run(main()) |