#Best way to communicate between two bots
17 messages · Page 1 of 1 (latest)
why not combine it in 1 bot?
bot B can work without bot A, that is made for one guild only, so I wanted to keep it separately
I have little to no experience at all with express server, but would it work? I'm planning to study it anyway (both are hosted on the same machine)
You could make a post request from one place to the other yh
I see, thx for the direction
btw, does djs have some way to do it or i need to do a rest?
You can have an express server running on bot b, and then make a post request to that one through using rest, undici, native fetch (needs a node version high enough to do so)
I see, tks again
I'll study express finally
It’s honestly not too hard tbf
Why not just listen to guildMemberUpdate in bot B and check if they got the role?
Hmmm, forgot about that, seems pretty much easier tbh
u can always use ws
Hmm, are there any section in the documentation about ws?
Or anywhere else so I can read more about
here https://github.com/websockets/ws/blob/HEAD/doc/ws.md
you will have to create a server on u main bot and then connect to it with the other bot and then u can send message and recive them