Ask coding questions

← Back to all posts
Suggestions on implementing interconnection between Python repls
GunnarFunderbur (6)

So I have a couple of Discord Bots. They work fine by their own but I want to come up with a way to share information between each bot and a script so that every bot shares the same information and possibly allowing me to control every bot by sending a command to the script which would call a function in each bot.

I've tried to use socket my client script does not see the server script.

I'm unfamiliar with databases but I don't feel this is what I want since to my knowledge, a database holds info but it cannot send commands.

Answered by Coder100 (16868) [earned 5 cycles]
View Answer
Comments
hotnewtop
Coder100 (16868)

Yes. You can use http servers to create some sort of api to control the bots, but don't forget to make it secure and add secret tokens!