tomer8007 / kik-bot-api-unofficial

Python API for writing unoffical Kik bots that act like humans
MIT License
128 stars 77 forks source link

interactive client simultaneously reading and writing #180

Closed QtpyeRose closed 3 years ago

QtpyeRose commented 3 years ago

the interactive client simultaneously reads and writes, while typing a message if you are delivered a message it will interrupt your typing and truncate the message you send. see image below Capture

in this case, only "orld" would be sent by the bot

I know the message format looks a little different, I'm using photon_clinet.py (the client I'm designing) from my personal fork. but this also happens with the default interactive_client.py, I came across it cause I'm trying to fix it in mine and posted this cause I don't know how to solve it.

tomer8007 commented 3 years ago

Yes, basically what we want is to read input from the user and print in the same time (from two different thread), something similar to this StackOverflow question.