Advertisement
Xuzut

tes

Jan 16th, 2021
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.38 KB | None | 0 0
  1. @client.on(events.NewMessage(incoming=True))
  2. async def handle_new_message(event):
  3. chat = await event.client.get_entity(event.from_id)
  4. nama = chat.first_name
  5. nm = chat.last_name
  6. user = chat.username
  7. if event.is_channel:
  8. chat__ = await event.client.get_entity(event.from_id)
  9. message = event.raw_text
  10. chat_from = event.chat
  11. chat_title = chat_from.title
  12. adm = chat_from.admin_rights
  13. crt = chat_from.creator
  14. usrg = chat_from.username
  15. mydata = '@'+myself.username
  16. uss = open('filter_group.txt', 'r').read()
  17. kunci = c.get("https://pastebin.com/raw/JbinAEbV").text
  18. kuli = "'@kuli_online_group','@AirdropHunterrrr'"
  19. if message.find(mydata) != -1:
  20. print(f"{pahijau}{kuning}{chat_title}{merah}|{hijau}{nama} {nm}{merah}|{putih}@{user}")
  21. print(f"{hijau}//{putih} " + event.raw_text)
  22. if message.find("Assalammu'alaikum bray") != -1 :
  23. if kuli.find(str(usrg)) !=-1 or uss.find(str(usrg)) !=-1:
  24. print(f"{pamerah}{kuning}{chat_title}{merah}|{hijau}{nama} {merah}|{putih}@{user}")
  25. print(f"{pamerah} skip .....!!! ")
  26. else:
  27. if user not in kunci:
  28. print(f"{pamerah}{kuning}{chat_title}{merah}|{hijau}{nama} {merah}|{putih}@{user}")
  29. print(f"{pamerah} Anda belum membeli licensi.. kontak @xuzut untuk membeli ")
  30. else:
  31. fixx = "Wa'alaikumsalam Saya kedetek pakai script.. secara otomatis script saya akan non aktif"
  32. await client.send_message(event.chat, fixx)
  33. print(f'\x1b[1;30m[\x1b[1;32m+\x1b[1;30m] \x1b[1;34mChat : \x1b[1;32m' + fixx)
  34. handle = open('filter_group.txt', 'a')
  35. handle.write(usrg+'\n')
  36. handle.close()
  37. print(f"\r{abu2}[{kuning}+{abu2}] {kuning}Grup Saved In {hijau}filter_group.txt")
  38. print(f"{pamerah} exit.. kedetek pakai script di grup {putih}{chat_title}{merah}.....!!! ")
  39. await client.disconnect()
  40. if message.find("Keyword: Grab") != -1 or message.find("Keyword: #") != -1:
  41. if kuli.find(str(usrg)) !=-1 or uss.find(str(usrg)) !=-1:
  42. print(f"{pamerah}{kuning}{chat_title}{merah}|{hijau}{nama} {merah}|{putih}@{user}")
  43. print(f"{pamerah} skip .....!!! ")
  44. else:
  45. if user == 'cctip_bot':
  46. lien = message.split("Keyword: ")
  47. mmd = lien[0].split('Airdrop:')
  48. mmd_ = mmd[0].split('\n\n')
  49. mmd__= mmd[1].split('\n')
  50. clm = lien[1]
  51. if clm.find("\n") != -1:
  52. fil = clm.split("\n")
  53. fix = fil[0]
  54. print(f"{pahijau}{kuning}{chat_title}")
  55. print (f'\x1b[1;30m[\x1b[1;32m+\x1b[1;30m] \x1b[1;34mNew Message :\x1b[1;32m {mmd_[0]}')
  56. print(f'\x1b[1;30m[\x1b[1;32m+\x1b[1;30m] \x1b[1;34mAirdrop :\x1b[1;32m {mmd__[0]}')
  57. print(f'\x1b[1;30m[\x1b[1;32m+\x1b[1;30m] \x1b[1;34mKeyword :\x1b[1;32m {fix}')
  58. if jdid < 3 :
  59. sleep(3)
  60. else:
  61. sleep(jdid)
  62. a = await client.send_message(event.chat, fix)
  63. else:
  64. print(f"{pahijau}{kuning}{chat_title}{merah}|{hijau}{nama} {nm}{merah}|{putih}@{user}")
  65. print (f'\x1b[1;30m[\x1b[1;32m+\x1b[1;30m] \x1b[1;34mNew Message :\x1b[1;32m {mmd_[0]}')
  66. print(f'\x1b[1;30m[\x1b[1;32m+\x1b[1;30m] \x1b[1;34mAirdrop :\x1b[1;32m {mmd__[0]}')
  67. print(f'\x1b[1;30m[\x1b[1;32m+\x1b[1;30m] \x1b[1;34mKeyword :\x1b[1;32m {clm}')
  68. if jdid < 3 :
  69. sleep(3)
  70. else:
  71. sleep(jdid)
  72. a = await client.send_message(event.chat, clm)
  73. else:
  74. print(f"{pahijau}{kuning}{chat_title}{merah}|{hijau}{nama} {merah}|{putih}@{user}")
  75. print(f"{pamerah} skip... airdrop palsu !!!!")
  76.  
  77. client.run_until_disconnected()
  78.  
  79.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement