Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait3 = {
- "copy":False,
- "copy2":"target",
- "target":{}
- }
- #-------------------COPY---------------#
- elif msg.text in ["Mimic on","mimic on"]:
- if msg.from_ in admin:
- wait3["copy"] = True
- cl.sendText(msg.to,"Mimic on")
- else:
- cl.sendText(msg.to,"You are not a admins")
- elif msg.text in ["Mimic off","mimic off"]:
- if msg.from_ in admin:
- wait3["copy"] = False
- cl.sendText(msg.to,"Mimic off")
- else:
- cl.sendText(msg.to,"You are not a admins")
- elif msg.from_ in admin and wait3["copy"] == True and wait3["copy2"] == "me" and "Ccopy" not in msg.text:
- for i in range(1):
- cl.sendText(msg.to,msg.text)
- wait3["copy"] = False
- wait3["copy"] = True
- elif msg.from_ in wait3["target"] and wait3["copy"] == True and wait3["copy2"] == "target":
- for i in range(1):
- cl.sendText(msg.to,msg.text)
- wait3["copy"] = False
- wait3["copy"] = True
- elif "Mimic " in msg.text:
- if msg.from_ in admin:
- if wait3["copy"] == True:
- siapa = msg.text.replace("Mimic ","")
- if siapa.rstrip(' ') == "me":
- wait3["copy2"] = "me"
- cl.sendText(msg.to,"Mimic change to me")
- elif siapa.rstrip(' ') == "target":
- wait3["copy2"] = "target"
- cl.sendText(msg.to,"Mimic change to target")
- else:
- cl.sendText(msg.to,"I dont know")
- else:
- cl.sendText(msg.to,"Sorry, before using.. change Mimic to on")
- else:
- cl.sendText(msg.to,"You are not a admins")
- elif "Target @" in msg.text:
- if msg.from_ in admin:
- target = msg.text.replace("Target @","")
- gc = cl.getGroup(msg.to)
- targets = []
- for member in gc.members:
- if member.displayName == target.rstrip(' '):
- targets.append(member.mid)
- if targets == []:
- cl.sendText(msg.to, "User not found")
- else:
- for t in targets:
- wait3["target"][t] = True
- cl.sendText(msg.to,"Target added")
- else:
- cl.sendText(msg.to,"You are not a admins")
- elif "Del target @" in msg.text:
- if msg.from_ in admin:
- target = msg.text.replace("Del target @","")
- gc = cl.getGroup(msg.to)
- targets = []
- for member in gc.members:
- if member.displayName == target.rstrip(' '):
- targets.append(member.mid)
- if targets == []:
- cl.sendText(msg.to, "User not found")
- else:
- for t in targets:
- del wait3["target"][t]
- cl.sendText(msg.to,"Target deleted")
- else:
- cl.sendText(msg.to,"You are not a admins")
- elif msg.text in ["Targetlist"]:
- if msg.from_ in admin:
- if wait3["target"] == {}:
- cl.sendText(msg.to,"nothing")
- ki.sendText(msg.to,"nothing")
- kk.sendText(msg.to,"nothing")
- kc.sendText(msg.to,"nothing")
- else:
- mc = "Target copy user\n"
- for mi_d in wait3["target"]:
- mc += "* "+cl.getContact(mi_d).displayName + "\n"
- cl.sendText(msg.to,mc)
- else:
- cl.sendText(msg.to,"You are not a admins")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement