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

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:

Socket Programming HOWTO

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:

Sending string via socket (python)


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct