I have a chatbot on linode, I'd like it to feed the output to a remote computer..
The chatbot gets input and output via a python script on a remote computer. What is the best method to have it provide the input string and then receive the output?
1 Reply
mjones
Linode Staff
There's a lot of different ways to do this, but almost all of them involve setting up a socket. I'd recommend checking out the official Python 3 intro to sockets here:
From there, take a look at a few different examples of how to set up sending a string to a different server through a socket. That'll give you a good baseline of what can be done to make your own solution from. This Stack Overflow post has a pretty good one to get you started: