Giter Club home page Giter Club logo

linechivas's Introduction

LineChivas

May the Chivas be with you...

Tutorial

Recomended for python 2.7

Using git :

$ git clone http://github.com/merkremont/LineChivas

Python packages :

$ pip install thrift==0.9.3
$ pip install rsa
$ pip install requests

Run Chivas :

$ python chivasbot.py

Video Tutorial

Tutorial Build BOT LINE Unofficial Protector and Kicker Group

Author

Merk Kremont / @merkremont

linechivas's People

Contributors

fadhiilrachman avatar merkremont avatar noxturnix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

linechivas's Issues

another error. cant login

python2 chivasbot.py
line://au/q/v1Leb9iDVjplQWrBb5SgqbnSPWAzJ604
Traceback (most recent call last):
File "chivasbot.py", line 8, in
cl.login(qr=True)
File "/data/data/com.termux/files/home/LineChivas/LineAlpha/LineApi.py", line 33, in login
self.Talk.qrLogin(callback)
File "/data/data/com.termux/files/home/LineChivas/LineAlpha/Api/Talk.py", line 94, in qrLogin
"X-Line-Access": qr.verifier,
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/requests/api.py", line 72, in get
return request('get', url, params=params, **kwargs)
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/requests/api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/requests/sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/requests/sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/requests/adapters.py", line 508, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='https', port=80): Max retries exceeded with url: //gd2.line.naver.jp:443/Q (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xb5ae7dd0>: Failed to establish a new connection: [Errno 7] No address associated with hostname',))

Check silent reader algorithm?

Hi, thanks for the work. It's GREAT!

But, since I don't know python and I can't read your codes well, would you tell me the algorithm of how to check for silent reader in group chats?

Thanks!

HELP

teach me to make bot chivas using termux

Command protection

what command for protection group?

all command work but i test kick one member in group din't work

Why Everyone can command

Sorry i want ask again, why everyone can command Bot at room ???

May i must to change that's MID ???
admin=["YOUR_MID_HERE"]

What's the mean of "global name 'k3' is not defined" ???

Help me please

help

self.trans.write(s)
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/thrift/transport/THttpClient.py", line 134, in write
self.__wbuf.write(buf)
TypeError: 'unicode' does not have the buffer interface

LOGIN ISSUE...

What should i do?

python chivasbot.py
line://au/q/Ze4yOkp4wz0NIRYbyqXFQhM3kRUmkUvy
Traceback (most recent call last):
File "chivasbot.py", line 8, in
cl.login(qr=True)
File "C:\Users\XXXX\LineChivas\LineAlpha\LineApi.py", line 33, in login
self.Talk.qrLogin(callback)
File "C:\Users\XXXX\LineChivas\LineAlpha\Api\Talk.py", line 94, in qrLogin
"X-Line-Access": qr.verifier,
File "C:\Python27\lib\site-packages\requests\api.py", line 72, in get
return request('get', url, params=params, **kwargs)
File "C:\Python27\lib\site-packages\requests\api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Python27\lib\site-packages\requests\sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "C:\Python27\lib\site-packages\requests\sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "C:\Python27\lib\site-packages\requests\adapters.py", line 508, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='https', port=80): Max retries exceeded with url: //gd2.line.naver.jp:443/Q (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x047868B0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))

# Can anyone help me?

Errors?

So i was testing the Chivasbot, the Vodka bot was doing perfect but when i used the Chivas it shows

Traceback (most recent call last):
  File "chivasbot.py", line 8, in <module>
    cl.login(qr=True)
  File "C:\Users\user\LineChivas\LineAlpha\LineApi.py", line 33, in login
    self.Talk.qrLogin(callback)
  File "C:\Users\user\LineChivas\LineAlpha\Api\Talk.py", line 97, in qrLogin
    vr = r.json()["result"]["verifier"]
KeyError: 'result'

Will you fix help me with this asap?, thanks!!

SyntaxError: invalid syntax

Help me please for this issue

F:\LINEBOT\LineChivas (master)
λ python chivasbot.py
Traceback (most recent call last):
File "chivasbot.py", line 2, in
import LineAlpha
File "F:\LINEBOT\LineChivas\LineAlpha_init_.py", line 2, in
from LineApi import LINE
File "F:\LINEBOT\LineChivas\LineAlpha\LineApi.py", line 2, in
from Api import Poll, Talk, Channel
File "F:\LINEBOT\LineChivas\LineAlpha\Api_init_.py", line 3, in
from channel import Channel
File "C:\Python27\lib\site-packages\channel.py", line 3
print('This is suroegin's package - channel')
^
SyntaxError: invalid syntax

Error LineChivas

Help me please @merkremont for this error

[root@sgx LineChivas]# python chivasbot.py
/root/LineChivas/LineAlpha/Api/Talk.py:27: DeprecationWarning: Please use the THttpClient('http://host:port/path') syntax
self.transport = THttpClient.THttpClient(self.host, self.port, self.http_query_path)
line://au/q/RHoydtLpohG02yU5qauogQ6GUISzTuMb
Traceback (most recent call last):
File "chivasbot.py", line 8, in
cl.login(qr=True)
File "/root/LineChivas/LineAlpha/LineApi.py", line 33, in login
self.Talk.qrLogin(callback)
File "/root/LineChivas/LineAlpha/Api/Talk.py", line 98, in qrLogin
lr = self.client.loginWithVerifierForCerificate(vr)
File "/root/LineChivas/LineAlpha/Gen/LineService.py", line 11189, in loginWithVerifierForCerificate
self.send_loginWithVerifierForCerificate(verifier)
File "/root/LineChivas/LineAlpha/Gen/LineService.py", line 11196, in send_loginWithVerifierForCerificate
args.write(self._oprot)
File "/root/LineChivas/LineAlpha/Gen/LineService.py", line 61628, in write
oprot.writeString(self.verifier)
File "build/bdist.linux-x86_64/egg/thrift/protocol/TProtocol.py", line 121, in writeString
File "build/bdist.linux-x86_64/egg/thrift/protocol/TCompactProtocol.py", line 42, in nested
File "build/bdist.linux-x86_64/egg/thrift/protocol/TCompactProtocol.py", line 272, in __writeBinary
File "build/bdist.linux-x86_64/egg/thrift/transport/THttpClient.py", line 134, in write
TypeError: expecting a bytes object, got unicode

SB tes

-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")
    

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

chivas error ?

chivas error ?
udah login pake code qr tapi ga respon apa-apa,
kalo make vodka udah login tapi ngrespon, kira2 kenapa bro ?

chivas ga ada bacaan login succesfull, udah coba ganti akun tapi tetep aja

Please

How do I not let other users use the command

not respond

that bot are succes login. but, why not respond? can't join grup, can't send msg, can't all? can you help me?

THIS SCRIPT IS *****

Thanks for share this script but you must to know @merkremont and @fadhiilrachman ILMU ITU MURAH karena sesama Indo bukan takut saingan tapi saling berbagi... REZEKI SUDAH DI ATUR SOB dan cek sendiri aja kesalahan pada script kamu @merkremont .., saran saya HAPUS AKUN DAH dan jangan sok inggris krn ilmu ini dari Korea... :v :v :v

Note: saya paling suka hancurin orang PELIT ILMU... remember that !!!

Issue Module LINE

@merkremont help me please

python chivasbot.py
Traceback (most recent call last):
File "chivasbot.py", line 7, in
cl = LineAlpha.LINE()
AttributeError: 'module' object has no attribute 'LINE'

can you help me ?

Traceback (most recent call last):
File "LineApi.py", line 2, in
from Api import Poll, Talk, channel
File "C:\Users\kaye\Desktop\LineChivas-master\LineAlpha\Api_init_.py", line
1, in
from Talk import Talk
File "C:\Users\kaye\Desktop\LineChivas-master\LineAlpha\Api\Talk.py", line 3,
in
import requests, rsa
ImportError: No module named requests

still error

python2 chivasbot.py
Traceback (most recent call last):
File "chivasbot.py", line 2, in
import LineAlpha
File "/data/data/com.termux/files/home/LineChivas/LineAlpha/init.py", line 2, in
from LineApi import LINE
File "/data/data/com.termux/files/home/LineChivas/LineAlpha/LineApi.py", line 2, in
from Api import Poll, Talk, Channel
File "/data/data/com.termux/files/home/LineChivas/LineAlpha/Api/init.py", line 3, in
from channel import Channel
ImportError: No module named channel

Connection Error

line://au/q/bL9F3STAuLQ12nCuszqwp9UnW5vjh2ui
Traceback (most recent call last):
File "C:\Users\yovap\Desktop\LineChivas-master\chivasbot.py", line 8, in
cl.login(qr=True)
File "C:\Users\yovap\Desktop\LineChivas-master\LineAlpha\LineApi.py", line 33, in login
self.Talk.qrLogin(callback)
File "C:\Users\yovap\Desktop\LineChivas-master\LineAlpha\Api\Talk.py", line 94, in qrLogin
"X-Line-Access": qr.verifier,
File "C:\Python27\lib\site-packages\requests\api.py", line 72, in get
return request('get', url, params=params, **kwargs)
File "C:\Python27\lib\site-packages\requests\api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Python27\lib\site-packages\requests\sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "C:\Python27\lib\site-packages\requests\sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "C:\Python27\lib\site-packages\requests\adapters.py", line 508, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='https', port=80): Max retries exceeded with url: //gd2.line.naver.jp:443/Q (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000000000367B128>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))

what will I do ? :"(

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.