Event from other bot

Hi everyone I have two bots running on SapphireJS. From bot B, I want to emit a custom event to bot A using client.emit(). I saw your documentation here: https://sapphirejs.dev/docs/Guide/listeners/listening-to-events-emitted-by-other-emitters But I don’t understand the part about "One method is to set the name a Client property containing the emitter like so:" Also, I can’t use client.ws because I don’t have access to it, and I’d prefer not to use it if possible Is there a simpler way to achieve this? Thanks!
Sapphire Framework
Listening to events emitted by other emitters | Sapphire
By default, Sapphire's event emitter is your client. However, for advanced use cases, you can specify a different
1 Reply
Favna
Favna2w ago
This is not possible. Each process is completely isolated. You'll have to use a messaging protocol services such as a REST API or RabbitMQ

Did you find this page helpful?