Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sb oasis #23

Open
denmasgeoo opened this issue Jan 29, 2018 · 0 comments
Open

Sb oasis #23

denmasgeoo opened this issue Jan 29, 2018 · 0 comments

Comments

@denmasgeoo
Copy link

Tab(sys)
sys.setdefaultencoding('utf-8')
helpMessage ="""
>>°Denmas Geo°<<

[Me]:
[Group Id]:
[TL : "Text"]:
[Share: on]:
[Share: off]:
[Rename :]:
[Up clock]:
[Name :]:
[MIC]: ↪"mid"]:
[Reject]: ↪" invite"]:
[Contact: on]:
[Contact: off]:
[Auto join: on]:
[Auto join: off]:
[Auto leave: on]:
[Auto leave: off]:
[Invite cancel :]:
[Auto add: on]:
[Auto add: off]:
[Massage add: "text"]:
[Add confirmasi]:
[Comment: on]:
[Comment: off]:
[Comment set : "Text"]:
[Comment change :"Text"]:
[Comment check]:
[Clock: on]:
[Clock: off]:
[Setting]:
(≧∇≦) Commands in the groups(≧∇≦)
[Responsename/kicker]:
[Ban]:
[Unban]:
[Banlist]:
[Urlon]:
[Urloff]:
[Url]:
[Ginfo]:
[Invite: "mid"]:
[Say: "Text"]:
[Kick " @tag]:
[Cancel]:
[Gn: "name"]:
[Purge: " Name"]:
[NK: "Name"]:
[Dead]:
[Kicker request author]

      >>Selfbot by GEO<<"""          

mid = cl.getProfile().mid
kimid = ki.getProfile().mid
k2mid = ki2.getProfile().mid

wait = {
'contact':True,
'autoJoin':False,
'autoCancel':{"on":True,"members":1},
'leaveRoom':False,
'timeline':True,
'autoAdd':False,
'message':"",
"lang":"JP",
"comment":"花音family",
"commentOn":True,
"commentBlack":{},
"wblack":False,
"dblack":False,
"clock":True,
"cName":"GEO ",
"blacklist":{},
"wblacklist":False,
"dblacklist":False
}

def bot(op):
try:
if op.type == 0:
return
if op.type == 5:
if wait["autoAdd"] == True:
cl.findAndAddContactsByMid(op.param1)
if (wait["message"] in [""," ","\n",None]):
pass
else:
cl.sendText(op.param1,str(wait["message"]))
if op.type == 13:
if mid in op.param3:
G = cl.getGroup(op.param1)
if wait["autoJoin"] == True:
if wait["autoCancel"]["on"] == True:
if len(G.members) <= wait["autoCancel"]["members"]:
cl.rejectGroupInvitation(op.param1)
else:
cl.acceptGroupInvitation(op.param1)
else:
cl.acceptGroupInvitation(op.param1)
elif wait["autoCancel"]["on"] == True:
if len(G.members) <= wait["autoCancel"]["members"]:
cl.rejectGroupInvitation(op.param1)
else:
Inviter = op.param3.replace("�",',')
InviterX = Inviter.split(",")
matched_list = []
for tag in wait["blacklist"]:
matched_list+=filter(lambda str: str == tag, InviterX)
if matched_list == []:
pass
else:
cl.cancelGroupInvitation(op.param1, matched_list)
if op.type == 19:
if mid in op.param3:
wait["blacklist"][op.param2] = True
if op.type == 22:
if wait["leaveRoom"] == True:
cl.leaveRoom(op.param1)
if op.type == 24:
if wait["leaveRoom"] == True:
cl.leaveRoom(op.param1)
if op.type == 26:
msg = op.message
if msg.toType == 0:
msg.to = msg.from_
if msg.from_ == " ":
if "join:" in msg.text:
list_ = msg.text.split(":")
try:
cl.acceptGroupInvitationByTicket(list_[1],list_[2])
G = cl.getGroup(list_[1])
G.preventJoinByTicket = True
cl.updateGroup(G)
except:
cl.sendText(msg.toua4638bb621837fa9c6a7f2227c8a7ab7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant