Facebook
From atabey, 2 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 211
  1.              f"Assistant Four Started as {self.four.name}"
  2.             )
  3.         if config.STRING5:
  4.             await self.five.start()
  5.             try:
  6.                 await self.five.join_chat("TeamYM")
  7.                 await self.five.join_chat("TheYukki")
  8.                 await self.five.join_chat("YukkiSupport")
  9.             except:
  10.                 pass
  11.             assistants.append(5)
  12.             try:
  13.                 await self.five.send_message(
  14.                     config.LOG_GROUP_ID, "Assistant Started"
  15.                 )
  16.             except:
  17.                 LOGGER(__name__).error(
  18.                     f"Assistant Account 5 has failed to access the log Group. Make sure that you have added your assistant to your log group and promoted as admin! "
  19.                 )
  20.                 sys.exit()
  21.             get_me = await self.five.get_me()
  22.             self.five.username = get_me.username
  23.             self.five.id = get_me.id
  24.             assistantids.append(get_me.id)
  25.             if get_me.last_name:
  26.                 self.five.name = (
  27.                     get_me.first_name + " " + get_me.last_name
  28.                 )
  29.             else:
  30.                 self.five.name = get_me.first_name
  31.             LOGGER(__name__).info(
  32.                 f"Assistant Five Started as {self.five.name}"
  33.             )