text: # hmm@hhh
  import asyncio
  import logging
  import os
  import sys
  import time
  from distutils.util import strtobool as sb
  from logging import DEBUG, INFO, basicConfig, getLogger
  
  import pylast
  import wget
  from dotenv import load_dotenv
  from nospamplus.connect import Connect
  from pylast import LastFMNetwork, md5
  from pySmartDL import SmartDL
  from requests import get
  from telegraph import Telegraph, exceptions, upload_file
  from telethon import TelegramClient
  from telethon.sessions import StringSession
  
  from var import Var
  token = os.environ.get("TG_BOT_TOKEN_BF_HER", None)
  
  sedmrunal = TelegramClient('sedmrunal', Var.APP_ID, Var.API_HASH).start(bot_token=token) 
  
  if Var.STRING_SESSION:
      session_name = str(Var.STRING_SESSION)
      bot = TelegramClient(StringSession(session_name), Var.APP_ID, Var.API_HASH)
  else:
      session_name = "startup"
      bot = TelegramClient(session_name, Var.APP_ID, Var.API_HASH)
  
  beast = bot
  from .Configs import Config
  
  Lastupdate = time.time()
  sedprint = logging.getLogger("WARNING")
  from var import Var
  
  CMD_LIST = {}
  CMD_HELP = {}
  INT_PLUG = ""
  LOAD_PLUG = {}
  
  ENV = os.environ.get("ENV", False)
  """ PPE initialization. """
  
  # Bot Logs setup:
  if bool(ENV):
      CONSOLE_LOGGER_VERBOSE = sb(os.environ.get("CONSOLE_LOGGER_VERBOSE", "False"))
  
      if CONSOLE_LOGGER_VERBOSE:
          basicConfig(
              format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
              level=DEBUG,
          )
      else:
          basicConfig(
              format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", level=INFO
          )
      LOGS = getLogger(__name__)
      CONFIG_CHECK = os.environ.get(
          "___________PLOX_______REMOVE_____THIS_____LINE__________", None
      )
  
      if CONFIG_CHECK:
          LOGS.info(
              "Please remove the line mentioned in the first hashtag from the config.env file"
          )
          quit(1)
  
      # Logging channel/group configuration.
      BOTLOG_CHATID = os.environ.get("BOTLOG_CHATID", None)
      try:
          BOTLOG_CHATID = int(BOTLOG_CHATID)
      except:
          pass
  
      # Userbot logging feature switch.
      BOTLOG = sb(os.environ.get("BOTLOG", "False"))
  
      # Bleep Blop, this is a bot ;)
      PM_AUTO_BAN = sb(os.environ.get("PM_AUTO_BAN", "False"))
  
      # Console verbose logging
      CONSOLE_LOGGER_VERBOSE = sb(os.environ.get("CONSOLE_LOGGER_VERBOSE", "False"))
  
      # SQL Database URI
      DB_URI = os.environ.get("DATABASE_URL", None)
  
      # OCR API key
      OCR_SPACE_API_KEY = os.environ.get("OCR_SPACE_API_KEY", None)
  
      # remove.bg API key
      REM_BG_API_KEY = os.environ.get("REM_BG_API_KEY", None)
  
      # Chrome For Carbon
      CHROME_DRIVER = os.environ.get("CHROME_DRIVER", "/usr/bin/chromedriver")
      GOOGLE_CHROME_BIN = os.environ.get("GOOGLE_CHROME_BIN", "/usr/bin/google-chrome")
  
      # Heroku Credentials for updater.
      HEROKU_MEMEZ = sb(os.environ.get("HEROKU_MEMEZ", "False"))
      HEROKU_APP_NAME = os.environ.get("HEROKU_APP_NAME", None)
      HEROKU_API_KEY = os.environ.get("HEROKU_API_KEY", None)
  
      # Pm Permit Img
      PMPERMIT_PIC = os.environ.get("PMPERMIT_PIC", "https://telegra.ph/file/c33ed6c01759d8d0e801e.jpg")
      # PRIVATE_GROUP_ID = os.environ.get("PRIVATE_GROUP_ID", None)
      AUTONAME = os.environ.get("AUTONAME", None)
      CUSTOM_PMPERMIT = os.environ.get("CUSTOM_PMPERMIT", None)
  
      # OpenWeatherMap API Key
      OPEN_WEATHER_MAP_APPID = os.environ.get("OPEN_WEATHER_MAP_APPID", None)
  
      # Anti Spambot Config
      ANTI_SPAMBOT = sb(os.environ.get("ANTI_SPAMBOT", "False"))
      # Log It
      PRIVATE_GROUP_BOT_API_ID = os.environ.get("PRIVATE_GROUP_BOT_API_ID", None)
  
      ANTI_SPAMBOT_SHOUT = sb(os.environ.get("ANTI_SPAMBOT_SHOUT", "False"))
  
      # Youtube API key
      YOUTUBE_API_KEY = os.environ.get("YOUTUBE_API_KEY", None)
  
      # Default .alive name
      ALIVE_NAME = os.environ.get("ALIVE_NAME", "https://telegra.ph/file/4a1e0ee716f805cf66777.jpg")
      lang = os.environ.get("lang", "en")
      pro = os.environ.get("pro", False)
      LESS_SPAMMY = os.environ.get("LESS_SPAMMY", True)
  
      # Time & Date - Country and Time Zone
      COUNTRY = str(os.environ.get("COUNTRY", ""))
  
      TZ_NUMBER = int(os.environ.get("TZ_NUMBER", 1))
  
      # Clean Welcome
      CLEAN_WELCOME = sb(os.environ.get("CLEAN_WELCOME", "True"))
  
      # Spamwatch Module
      SPAMWATCH_API = os.environ.get("SPAMWATCH_API", None)
      ANTISPAM_SYSTEM = os.environ.get("ANTISPAM_SYSTEM", "DISABLE")
      WHITE_CHAT = PRIVATE_GROUP_ID = int(os.environ.get("WHITE_CHAT", False))
  
      # Last.fm Module
      BIO_PREFIX = os.environ.get("BIO_PREFIX", None)
      DEFAULT_BIO = os.environ.get("DEFAULT_BIO", None)
  
      LASTFM_API = os.environ.get("LASTFM_API", None)
      LASTFM_SECRET = os.environ.get("LASTFM_SECRET", None)
      LASTFM_USERNAME = os.environ.get("LASTFM_USERNAME", None)
      LASTFM_PASSWORD_PLAIN = os.environ.get("LASTFM_PASSWORD", None)
      LASTFM_PASS = pylast.md5(LASTFM_PASSWORD_PLAIN)
      if not LASTFM_USERNAME == "None":
          lastfm = pylast.LastFMNetwork(
              api_key=LASTFM_API,
              api_secret=LASTFM_SECRET,
              username=LASTFM_USERNAME,
              password_hash=LASTFM_PASS,
          )
      else:
          lastfm = None
  
      # Google Drive Module
      G_DRIVE_CLIENT_ID = os.environ.get("G_DRIVE_CLIENT_ID", None)
      G_DRIVE_CLIENT_SECRET = os.environ.get("G_DRIVE_CLIENT_SECRET", None)
      G_DRIVE_AUTH_TOKEN_DATA = os.environ.get("G_DRIVE_AUTH_TOKEN_DATA", None)
      GDRIVE_FOLDER_ID = os.environ.get("GDRIVE_FOLDER_ID", None)
      TEMP_DOWNLOAD_DIRECTORY = os.environ.get("TEMP_DOWNLOAD_DIRECTORY", "./downloads")
  else:
      # Put your ppe vars here if you are using local hosting
      PLACEHOLDER = None
  
  # Global Variables
  COUNT_MSG = 0
  USERS = {}
  COUNT_PM = {}
  LASTMSG = {}
  SUDO_LIST = {}
  CMD_HELP = {}
  CUSTOM_PMPERMIT_MSG = {}
  CUSTOM_BOTSTART = {}
  ISAFK = False
  AFKREASON = None
  # End of PaperPlaneExtended Support Vars
  link = "https://people.eecs.berkeley.edu/~rich.zhang/projects/2016_colorization/files/demo_v2/colorization_release_v2.caffemodel"
  km = "./resources/imgcolour/colorization_release_v2.caffemodel"
  pathz = "./resources/imgcolour/"
  if os.path.exists(km):
      pass
  else:
      try:
          sedlyf = wget.download(link, out=pathz)
      except:
          sedprint.info("I Wasn't Able To Download Cafee Model. Skipping")
  
  if Config.NOSPAMPLUS_TOKEN == None:
      sclient = None
      sedprint.info("[Warning] - NoSpamPlusToken is None")
  else:
      try:
          sclient = Connect(Config.NOSPAMPLUS_TOKEN)
      except Exception as e:
          sclient = None
          sedprint.info("[Warning] - " + str(e))
  