text: from discord import Intents
  from discord.ext.commands import Bot
  from discord.ext.commands.bot import when_mentioned_or
  
  from aiohttp import ClientConnectorError
  from os import listdir
  
  from libary.db_wrapper import Bank, Premium
  from libary.logger import logger
  from libary.utils import env
  
  client = Bot(
      command_prefix=when_mentioned_or("$"),
      strip_after_prefix=True,
      help_command=None,
      case_insensitive=True,
      intents=Intents.all()
  )
  
  if __name__ == "__main__":
      for filename in listdir("./cogs"):
          if filename.endswith(".py"):
              if not filename == "error.py":
                  client.load_extension(f"cogs.{filename[:-3]}")
  
  
      @client.event
      async def on_ready():
          logger.info(f"Bot started!")
          Bank().create()
          Premium().create()
  
  
      try:
          client.run(env("TOKEN"))
      except ClientConnectorError:
          logger.critical("Failed to start!")
  