ilham_hax0r

Script Copy Message

Sep 2nd, 2017
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.53 KB | None | 0 0
  1. wait = {
  2.     "copy":False,
  3.     "copy2":"target",
  4.     "target":{}
  5. }
  6.         elif msg.text in ["Copy o","copy o"]:
  7.             if msg.from_ in admin:
  8.                     wait["copy"] = True
  9.                     cl.sendText(msg.to,"Copy on")
  10.             else:
  11.                 cl.sendText(msg.to,"You are not a admins")
  12.         elif msg.text in ["Copy c","copy c"]:
  13.             if msg.from_ in admin:
  14.                     wait["copy"] = False
  15.                     cl.sendText(msg.to,"Copy off")
  16.             else:
  17.                 cl.sendText(msg.to,"You are not a admins")
  18.         elif msg.from_ in admin and wait["copy"] == True and wait["copy2"] == "me" and "Ccopy" not in msg.text:
  19.             for i in range(1):
  20.                 cl.sendText(msg.to,msg.text)
  21.                 ki.sendText(msg.to,msg.text)
  22.                 kk.sendText(msg.to,msg.text)
  23.                 kc.sendText(msg.to,msg.text)
  24.                 ke.sendText(msg.to,msg.text)
  25.                 wait["copy"] = False
  26.             wait["copy"] = True
  27.         elif msg.from_ in wait["target"] and wait["copy"] == True and wait["copy2"] == "target":
  28.             for i in range(1):
  29.                 cl.sendText(msg.to,msg.text)
  30.                 ki.sendText(msg.to,msg.text)
  31.                 kk.sendText(msg.to,msg.text)
  32.                 kc.sendText(msg.to,msg.text)
  33.                 ke.sendText(msg.to,msg.text)
  34.                 wait["copy"] = False
  35.             wait["copy"] = True
  36.         elif "Ccopy " in msg.text:
  37.             if msg.from_ in admin:
  38.                 if wait["copy"] == True:
  39.                     siapa = msg.text.replace("Ccopy ","")
  40.                     if siapa.rstrip('  ') == "me":
  41.                         wait["copy2"] = "me"
  42.                         cl.sendText(msg.to,"Copy change to me")
  43.                     elif siapa.rstrip('  ') == "target":
  44.                         wait["copy2"] = "target"
  45.                         cl.sendText(msg.to,"Copy change to target")
  46.                     else:
  47.                         cl.sendText(msg.to,"I dont know")
  48.                 else:
  49.                     cl.sendText(msg.to,"Sorry, before using.. change Copy to on")
  50.             else:
  51.                 cl.sendText(msg.to,"You are not a admins")
  52.         elif "Target " in msg.text:
  53.             if msg.from_ in admin:
  54.                 target = msg.text.replace("Target @","")
  55.                 gc = cl.getGroup(msg.to)
  56.                 targets = []
  57.                 for member in gc.members:
  58.                     if member.displayName == target.rstrip('  '):
  59.                         targets.append(member.mid)
  60.                 if targets == []:
  61.                     cl.sendText(msg.to, "User not found")
  62.                 else:
  63.                     for t in targets:
  64.                         wait["target"][t] = True
  65.                     cl.sendText(msg.to,"Target added")
  66.             else:
  67.                 cl.sendText(msg.to,"You are not a admins")
  68.         elif "Del target " in msg.text:
  69.             if msg.from_ in admin:
  70.                 target = msg.text.replace("Del target @","")
  71.                 gc = cl.getGroup(msg.to)
  72.                 targets = []
  73.                 for member in gc.members:
  74.                     if member.displayName == target.rstrip('  '):
  75.                         targets.append(member.mid)
  76.                 if targets == []:
  77.                     cl.sendText(msg.to, "User not found")
  78.                 else:
  79.                     for t in targets:
  80.                         del wait["target"][t]
  81.                     cl.sendText(msg.to,"Target deleted")
  82.             else:
  83.                 cl.sendText(msg.to,"You are not a admins")
  84.         elif msg.text in ["Targetlist"]:
  85.             if msg.from_ in admin:
  86.                     if wait["target"] == {}:
  87.                         cl.sendText(msg.to,"nothing")
  88.                         ki.sendText(msg.to,"nothing")
  89.                         kk.sendText(msg.to,"nothing")
  90.                         kc.sendText(msg.to,"nothing")
  91.                         ke.sendText(msg.to,"nothing")
  92.                     else:
  93.                         mc = "Target copy user\n"
  94.                         for mi_d in wait["target"]:
  95.                             mc += "* "+cl.getContact(mi_d).displayName + "\n"
  96.                         cl.sendText(msg.to,mc)
  97.             else:
  98.                 cl.sendText(msg.to,"You are not a admins")
Advertisement
Add Comment
Please, Sign In to add comment