Closed monhustla closed 7 years ago
kick limit 50, also sending too much operation got you ip ban
I have the right guy
Just add delay to your longpoll/operation request loop. I'm using 0.8s delay. Obviously, subtract the 0.8 by the time spent processing the operations.
Btw, this repo needs much optimization.
You cant login with email and password. The code was removed by request from Line. There are hints on how to do it here in the issues.
Messages are not set immediately. Someone need to chat the bot in the respective chat room for it to be sent. Theres a workaround about this using _client_out. You can find it in the issues here.
The bot can't mark messages as read, but I guess that's not really an issue. You can implement this yourself, though it'll be quite a hassle.
The chatroom isnt always the sender. If it's a group/room, the chatroom is actually the 'receiver'. Also, I had a problem with 'room'. Forgot what it was.
I think there was no method to add user by its mid. Curve has it, though.
It doesnt use persistent HTTPS connection. This means it's closing and reopening the socket on every request. This adds more delay to the every api call (my bot didnt even execute the time.sleep for the 0.8s delay lol, as it didnt need to). One of the issue here has the fix. Not the one which has link to the thrift website, that doesnt work for me. You'll have to edit the api.py to use the persistent transport instead and to not close and reopen the transport everytime. However, Line will still close the connection from their side after some time. It'll throw an exception, and you'll have to catch it, close the transport, reopen, and recall the api. Despite that, I felt a significant performance improvement.
Tips: handshake is taking so much time,, @R-N 0.01 - writing lemme handshake first ah i know you 0.07 - sended
I didnt know about that, lol
But closing and reopening socket took 0.4s here and thats way too long
And that's being done on every api call
0.4s ?? are you on 1mbps? i just test it at vps.
Bullseye. Yes, 1 mbps. Sucks to be me. 0.4s was when I test it on my own PC, editing httplib to profile it.
I host it on heroku though. It was faster but still too slow for me (about 0.1-0.2s I guess), specially when it's broadcasting messages to group members for a minigame I made.
I changed it to persistent connection, it's significantly faster now.
Btw can the handshake be removed? I'm not familiar with curve (or even python. This bot is actually the first thing I made in python), so, yeah. But, well, I'm fine with its current performance. Maybe it'll drop if many people use it but right now only about 30 people use it and I don't think there'll be much more to actually make the performance drop.
handshake is bit slow, so remove it ;) https = 443 -> handshaking every post http = 80 -> no need, do in tcp will let you send with >0.007second btw i dont get what you mean .-. , editing httplib? and btw @R-N r u had any contact else github? line maybe shrug looks like i found some1 that can use indo exacly :)
Sorry, I've been quite busy and hadn't checked my github for a long time lol. How exactly do I remove handshake? I thought Line only allow HTTPS? I'll try changing it to HTTP. Yeah I profile stuff with time.time() and eventually got to httplib lol. In the end that didn't really help.
I have FB and Line, though I'm afraid telling my Line here may get me banned lol. Does github have private messaging?
Yeah simply changing the URL to HTTP doesn't work. The server never responded
Cause you use this library. try findout other line thrift @R-N
I googled 'python disable SSL handshake' or something and found the following link. I put the code to be executed first. It seems to speed things up, noticeably. It used to be very slow when I'm using multithreading, but not anymore. http://dnaeon.github.io/disable-python-ssl-verification/
Did you mean python-line? Cuz that's the only other python Line client I can found. It looks promising since it was based on purple-line but it seems like it has also been abandoned. Last commit was 3 years ago. It also can't add contacts yet (It's in its TODO). Can it accept group invitation?
Or do you mean other library which wasn't written in Python?
i use some function of Purple LINE thrift. why you said open-close socket took 0.4s? i was use https and its just take 0.05s and didnt use handshake like 0.01s and its can more faster, like me right now can reach about 0.007s depend on the memory and cpu, i use a core server n 1gb ram, sosad but nice
how to edit thrift so that its speed becomes 0.007s in my bot, i've tried d some vps server but the result get 0.06s, if you can tell me to change thrift thanks @anysz
Help me to termux
Could someone tell me how I can Programm my Bot, so he can only talk to me? (For Line obv)
@bakir1234 you can write code that processes only msgs with your sender MID. That’s the easiest way to have the chatbot only talk with you. It will ignore all other events.
@monhustla did you find an ‘unofficial’ method to do this? I have legitimate need to empty a group and would like to hear from anyone with knowledge of how to do this.
hello could some point me into the right direction to develope this kind a bot. i learned a bit of 'c' at school but wanna learn how to make a bot which can ban invites in the line group chat
@linebotlearn let me know if you make any progress. The LINE API appears to be mostly written in python, btw.
Hey Guys, i started creating a bot in node...i use the linebot from git. already implemented it in my app.js and it works (echo-bot) BUT there are some problem i struggle with (FYI im new to node :) )
i'm unable to catch the event when a user joins i'm unable to catch a message und edit it for a mongo request
maybe i'll find someone here to help me out
Also looking for a bot for my line group chat. One that only lets moderators invite/remove people etc. A protection bot. If anyone knows how can they pls help
@utterlyfab1 @bottsjw @monhustla I can Provide such thing add me via LINE ID kingstupidity
I got one sorted..thanks tho
On Sun, 24 Jun 2018, 19:22 SSDesigns, notifications@github.com wrote:
@utterlyfab1 https://github.com/utterlyfab1 @bottsjw https://github.com/bottsjw @monhustla https://github.com/monhustla I can Provide such thing add me via LINE ID kingstupidity
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/carpedm20/LINE/issues/109#issuecomment-399776638, or mute the thread https://github.com/notifications/unsubscribe-auth/AkQY6OYtDiYChpk8OAY8A0GAJl5GNhbDks5t_9j1gaJpZM4Nhoob .
You found one that worked OK? Can you contact me on Line? Looking for a bot just like what you have described. LINE ID: heimdaltheinfidel2
I just want a kicker bot in line apps anyone selling a kicker bot?
I got what u need. Monthly rental fee. Pm me on Line app Azgardiosa
On Tue, 26 Jun 2018, 09:31 kram8282, notifications@github.com wrote:
I just want a kicker bot in line apps anyone selling a kicker bot?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/carpedm20/LINE/issues/109#issuecomment-400226089, or mute the thread https://github.com/notifications/unsubscribe-auth/AkQY6En5kz86zQB_WWLXZOgO7LnEK2thks5uAfF3gaJpZM4Nhoob .
Azgrdiosa i already sent a message to you in line
Azgrdiosa here is my line id kram666mark message me in line thanks
Any one selling a nuke bot in line apps i want to buy or rent monthly
im looking for a nuke bot in line apps pm me my line id kram82mark
anyone selling a nuke bot in line just contact me my line id : 82denise82
I need a nuke bots message me
Anyone selling or have a nuke bots in line just message me my line id: pusakram
yes add me
kingstupidity on line
ill add you once i get home
On Mon, Jun 25, 2018 at 1:23 PM Heimdaltheinfidel notifications@github.com wrote:
You found one that worked OK? Can you contact me on Line? Looking for a bot just like what you have described. LINE ID: heimdaltheinfidel2
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/carpedm20/LINE/issues/109#issuecomment-400083125, or mute the thread https://github.com/notifications/unsubscribe-auth/AVcIlRIO4mO5ldAHRujIedq1NaQOHAV9ks5uAUa6gaJpZM4Nhoob .
Some one have nuke bot can I buy my line I'd cram1973
Any one her can help me protect group chat room. message me in my line id: secretlover143
i have a bot script i think 13bot in this script but a issue in this script. when i use this bot i have getting invite and kick banned in my line account. anybody please fix my issue and help me give me some idea for this banned how can i fix it.
I have Golang's version.
Hello, add me on LINE
kingstupidity
On Thu, Feb 28, 2019 at 11:31 PM cutifie143 notifications@github.com wrote:
Any one her can help me protect group chat room. message me in my line id: secretlover143
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/carpedm20/LINE/issues/109#issuecomment-468571256, or mute the thread https://github.com/notifications/unsubscribe-auth/AVcIlVEFLQTHjiqbYBPdrE4UTNsEG-K6ks5vSNc7gaJpZM4Nhoob .
Any one her can help me protect group chat room. message me in my line id: secretlover143
Hello add me on the LINE APP My LINE ID Is below kingstupidity
i have a bot script i think 13bot in this script but a issue in this script. when i use this bot i have getting invite and kick banned in my line account. anybody please fix my issue and help me give me some idea for this banned how can i fix it.
Your abusing the commands etc. use them less or get a better bot feel free to DM me if you want room protection
LINE ID: kingstupidity
i have a bot script i think 13bot in this script but a issue in this script. when i use this bot i have getting invite and kick banned in my line account. anybody please fix my issue and help me give me some idea for this banned how can i fix it.
Your abusing the commands etc. use them less or get a better bot feel free to DM me if you want room protection
LINE ID: kingstupidity
yes bro. i need bot for protection group
@anysz Can i add your line? im interesting in golang version line file.w
@KazumiLine well the golang library will still remain to be private, but if you want tho, we could start from the begining with vlang.io https://github.com/vlang/v if you interested
You could take a look to Https://GitHub.com/go-line/linego/releases for slight information and first release version
@anysz can I add your line? Or may u add me? ID moumou010 I have something want to pm. QAQ When will it open code. OwO
@KazumiLine https://line.me/ti/p/dj7ggEUdm0
Line me id > arshleo
Hey, I've heard a lot of good things about this. I'm seeking a line app bot that can protect chat rooms from nukers. Is there any way to add these features to your bot? I'd love to pay for someone to develop a bot with these features or rent one from someone who already does. If not, could you possibly point me in the right direction of a developer who can do this? I really appreciate the help.