merkremont / linechivas Goto Github PK
View Code? Open in Web Editor NEWMay the Chivas be with you...
License: GNU General Public License v3.0
May the Chivas be with you...
License: GNU General Public License v3.0
teach me to make bot chivas using termux
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
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
This bot still can useable?
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!
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 !!!
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
Tolong fix agar bot defendernya world ini bot tidak work di kick member waktu ada kicker
that bot are succes login. but, why not respond? can't join grup, can't send msg, can't all? can you help me?
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
-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👉
-[] 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")
#-----------------------------------------------------------
How do I not let other users use the 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
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
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
what command for protection group?
all command work but i test kick one member in group din't work
Help me please how to bot leave from the group and auto join to the group if i'm invite of them
Thank"s merkmont
Please add getActivePurchaseVersions and getActivePurchase function. Thank you :)
@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'
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',))
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 ? :"(
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',))
Hi,
It seems ChivasBot HTTP Response for getAuthQrcode is 403 Forbidden resuting EOFError for recv_getAuthQrcode.
Any idea / hint to fix this?
Thanks.
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!!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.