Replies: 1 comment 1 reply
-
I suppose anyone can do the same using a wrapper |
Beta Was this translation helpful? Give feedback.
-
I suppose anyone can do the same using a wrapper |
Beta Was this translation helpful? Give feedback.
-
This would be pretty convenient for things like running a Discord bot and a web server together. So making a GET request to some location in the web server triggers an event in the Discord bot.
After looking at the Serenity example code (basic ping-pong bot), I thought that the best way would be to make Client implement Actor. "Handler" can implement Actor too for the user to implement their own handling logic, and any Actix Message sent to the Client will be propagated to the Handler.
I'm sure there's a better way to do this though, what do you think?
Beta Was this translation helpful? Give feedback.
All reactions