carpedm20 / LINE

May the LINE be with you...
http://carpedm20.github.io/line/
Other
822 stars 192 forks source link

Is there any kick, ban, invite user feature with the bot? I'd love to pay you to develop one if not #109

Closed monhustla closed 7 years ago

monhustla commented 7 years ago

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.

ii64 commented 7 years ago

kick limit 50, also sending too much operation got you ip ban

BloodySenpai commented 7 years ago

I have the right guy

R-N commented 7 years ago

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.

ii64 commented 7 years ago

Tips: handshake is taking so much time,, @R-N 0.01 - writing lemme handshake first ah i know you 0.07 - sended

R-N commented 7 years ago

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

ii64 commented 7 years ago

0.4s ?? are you on 1mbps? i just test it at vps.

R-N commented 7 years ago

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.

ii64 commented 7 years ago

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

R-N commented 7 years ago

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?

R-N commented 7 years ago

Yeah simply changing the URL to HTTP doesn't work. The server never responded

ii64 commented 7 years ago

Cause you use this library. try findout other line thrift @R-N

R-N commented 7 years ago

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?

ii64 commented 7 years ago

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

erickskynet commented 6 years ago

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

sarehuna commented 6 years ago

Help me to termux

bakir1234 commented 6 years ago

Could someone tell me how I can Programm my Bot, so he can only talk to me? (For Line obv)

bottsjw commented 6 years ago

@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.

bottsjw commented 6 years ago

@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.

linebotlearn commented 6 years ago

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

bottsjw commented 6 years ago

@linebotlearn let me know if you make any progress. The LINE API appears to be mostly written in python, btw.

noway1987 commented 6 years ago

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

utterlyfab1 commented 6 years ago

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

SSDesigns commented 6 years ago

@utterlyfab1 @bottsjw @monhustla I can Provide such thing add me via LINE ID kingstupidity

utterlyfab1 commented 6 years ago

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 .

Heimdaltheinfidel commented 6 years ago

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

kram8282 commented 6 years ago

I just want a kicker bot in line apps anyone selling a kicker bot?

utterlyfab1 commented 6 years ago

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 .

kram8282 commented 6 years ago

Azgrdiosa i already sent a message to you in line

kram8282 commented 6 years ago

Azgrdiosa here is my line id kram666mark message me in line thanks

kram8282 commented 6 years ago

Any one selling a nuke bot in line apps i want to buy or rent monthly

kramhell30 commented 6 years ago

im looking for a nuke bot in line apps pm me my line id kram82mark

kramhell30 commented 6 years ago

anyone selling a nuke bot in line just contact me my line id : 82denise82

kramhell30 commented 5 years ago

I need a nuke bots message me

kramhell30 commented 5 years ago

Anyone selling or have a nuke bots in line just message me my line id: pusakram

SSDesigns commented 5 years ago

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 .

crambot173 commented 5 years ago

Some one have nuke bot can I buy my line I'd cram1973

cutifie143 commented 5 years ago

Any one her can help me protect group chat room. message me in my line id: secretlover143

TeamYok commented 5 years ago

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.

ii64 commented 5 years ago

I have Golang's version.

SSDesigns commented 5 years ago

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 .

SSDesigns commented 5 years ago

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

SSDesigns commented 5 years ago

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

TeamYok commented 5 years ago

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

KazumiLine commented 4 years ago

@anysz Can i add your line? im interesting in golang version line file.w

ii64 commented 4 years ago

@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

KazumiLine commented 4 years ago

@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

ii64 commented 4 years ago

@KazumiLine https://line.me/ti/p/dj7ggEUdm0

arshadkhanzeno commented 4 years ago

Line me id > arshleo