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 tes #43

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

SB tes #43

denmasgeoo opened this issue Jan 24, 2018 · 0 comments

Comments

@denmasgeoo
Copy link

-helpMessage =""" Chivas Bot
-[Id︎]
-[Mid]
-[Me︎]
-[TL︎:「Text」]
-[Mc 「mid」]
-[K on/off]
-[Join︎ on/off]
-[Gcancel:︎「Number of people」]
-[Group cancelalll︎]
-[Leave︎ on/off]
-[Add on/off]
-[Share on/off]
-[Message change:「text」]
-[Message check]
-[Confirm]
-[Jam on/off]
-[Change clock:「name」]
-[Up]
-[Cv join]
+helpMessage ="""
+👈COMAND💖LIST👉

  • ✍✍✍✍✍✍✍✍
    +👉Id︎
    +👉Mid
    +👉Me︎
    +👉TL︎:Text
    +👉Mc mid
    +👉Cancel on/off
    +👉K on/off
    +👉Join︎ on/off
    +👉Gcancel:︎Number of people
    +👉C
    +👉Leave︎ on/off
    +👉Add on/off
    +👉Share on/off
    +👉Message change:text
    +👉Message check
    +👉Confirm
    +👉Jam on/off
    +👉Change clock:name
    +👉Up

-[] Command in the groups []
+👈COMAND GROUP👉

-[Curl]
-[Ourl]
-[url]
-[url:「Group ID」]
-[Invite:「mid」]
-[Kick:「mid」]
-[Ginfo]
-[Cancel]
-[Gn 「group name」]
-[Nk 「name」]
+👉Tg/Tagall
+👉spam on msg jumlah>text
+👉Curl/1/2/3
+👉Ourl/1/2/3
+👉url
+👉url:Group ID
+👉invite:mid
+👉Kick/1/2/3:mid
+👉Ginfo
+👉jointicket
+👉cancel/cancel/c
+👉Gn/1/2/3 group name
+👉nk=>name
+👉point> Check

-[] Command kicker only []
+👈Command kicker only 👉
+
+👉bye/1/2/3
+👉kill ban
+👉Kill @
+👉ban=> @ By Tag
+👉unban=> @ By Tag
+👉Ban=>︎ Share Contact
+👉Unban︎=> Share Contact
+👉banlist︎
+👉cek ban
+👉mid
+👉invite:mid
+👉rename
+👉gift/mygift
+👉respo︎n
+👉C
+👉Title:
+👉say > text
+👉Tes
+👆👆👆👆👆👆👆

-[Bye]
-[Kill ban]
-[Kill 「@」]
-[Ban 「@」] By Tag
-[Unban 「@」] By Tag
-[Ban︎] Share Contact
-[Unban︎] Share Contact
-[Banlist︎]
-[Cek ban]
-[Cv mid]
-[Cv ︎invite:「mid」]
-[Cv ︎rename:「name」]
-[Cv ︎gift]
-[Respo︎n]
-[Bot cancel]
-[Title:]
"""
KAC=[cl,ki,kk,kc]
mid = cl.getProfile().mid
@@ -1440,6 +1450,31 @@ def bot(op):
kc.leaveGroup(msg.to)
except:
pass
+#-----------------------------------------------

  •        elif msg.text in ["Tg","Tag all"]:
    
  •            group = cl.getGroup(msg.to)
    
  •            jw = [contact.mid for contact in group.members]
    
  •            cb = ""
    
  •            cb2 = ""
    
  •            strt = int(0)
    
  •            akh = int(0)
    
  •            for rs in jw:
    
  •                xname = cl.getContact(rs).displayName
    
  •                xlen = int(len('x')+1)
    
  •                akh = akh + xlen
    
  •                cb += """{"S":"""+json.dumps(str(strt))+""","E":"""+json.dumps(str(akh))+""","M":"""+json.dumps(rs)+"},"""
    
  •                strt = strt + int(len('x')+3)
    
  •                akh = akh + 2
    
  •                cb2 += "@x \n"
    
  •            cb = (cb[:int(len(cb)-1)])
    
  •            msg.contentType = 0
    
  •            msg.text = cb2
    
  •            msg.contentMetadata ={'MENTION':'{"MENTIONEES":['+cb+']}','EMTVER':'d'}
    
  •            try:
    
  •                cl.sendMessage(msg)
    
  •            except Exception as error:
    
  •                print error
    

#-----------------------------------------------
elif msg.text in ["Kill"]:
if msg.toType == 2:
@@ -1653,6 +1688,24 @@ def bot(op):
kk.sendText(msg.to, "%sseconds" % (elapsed_time))
kc.sendText(msg.to, "%sseconds" % (elapsed_time))

+elif "Spam " in msg.text:

  •           if msg.from_ in Bots or staff:
    
  •            txt = msg.text.split(" ")
    
  •            jmlh = int(txt[2])
    
  •            teks = msg.text.replace("Spam "+str(txt[1])+" "+str(jmlh)+ " ","")
    
  •            tulisan = jmlh * (teks+"\n")
    
  •            #Keke cantik <3
    
  •            if txt[1] == "on":
    
  •               if jmlh <= 60:
    
  •                  for x in range(jmlh):
    
  •                    cl.sendText(msg.to, teks)
    
  •               else:
    
  •                    cl.sendText(msg.to, "Kelebihan batas:v")
    
  •            elif txt[1] == "off":
    
  •               if jmlh <= 100:
    
  •                    cl.sendText(msg.to, tulisan)
    
  •               else:
    
  •                    cl.sendText(msg.to, "Kelebihan batas :v")
    

#-----------------------------------------------------------

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