print("\n".join(f"\033[1m\033[36m{line}\033[0m" for line in banner)) print( f"Starting Clubhouse Invite Management (CIM) v{VERSION} ({GITHUB_LINK})\n") sentry_dsn = os.environ.get("SENTRY_DSN") if sentry_dsn: sentry_sdk.init( dsn=sentry_dsn, attach_stacktrace=True, shutdown_timeout=5, integrations=[AioHttpIntegration(), SqlalchemyIntegration()], release=f"clubhouse@{VERSION}", ) db.create_tables() async def fetch_prefix(_, message: Message) -> Iterable[str]: return await get_prefix(), f"<@!{bot.user.id}> ", f"<@{bot.user.id}> " intents = Intents.all() bot = Bot(command_prefix=fetch_prefix, case_insensitive=True, description=translations.bot_description, intents=intents) bot.remove_command("help") bot.initial = True
def run(): bot.loop.run_until_complete(db.create_tables()) logger.debug("logging in") bot.run(TOKEN)