#Best way to communicate between two bots

17 messages · Page 1 of 1 (latest)

arctic trench
#

I currently have two bots, one role giver and one that creates channels (like a ticket) to the users report in-game farm.

When the users get the roles by the bot A, I want to send a trigger to bot B, what's the best way to do it?
I'm using buttons in bot A so a staff can validate if the user is in the (in game) guild.

civic sigil
#

why not combine it in 1 bot?

arctic trench
#

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)

magic storm
#

You could make a post request from one place to the other yh

arctic trench
#

I see, thx for the direction

#

btw, does djs have some way to do it or i need to do a rest?

magic storm
#

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)

arctic trench
#

I see, tks again

#

I'll study express finally

magic storm
#

It’s honestly not too hard tbf

hidden shale
arctic trench
#

Hmmm, forgot about that, seems pretty much easier tbh

arctic trench
#

Or anywhere else so I can read more about

median stream