-
Can anyone advise please - I would like to run a bot command that is executed by a PHP Script.... They run a command in Discord to get started, so I store their User ID and their Discord UN/Tag in the DB. !register -> Stores details, send them an email to complete registration process Can this be achieved? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Afaik nothing stops you from calling said API yourself, or porting that PHP script to Node.js for that matter. I don't think this should be something the library should do, specially when there can be many factors, such as using different protocols (RPC, WS, AMQP such as RabbitMQ...) in either unencrypted, encrypted with TLS/SSL, or SSH-tunneled. As you'd notice, this can be a very complicated thing, and would easily go outside of what the library should handle. |
Beta Was this translation helpful? Give feedback.
-
I don't expect it's necessarily something the library should or shouldn't do, I guess the question is, could I execute, in some way - the NodeJS file (in PHP) with parameters to set a user ID with a role once PHP script does its thing. |
Beta Was this translation helpful? Give feedback.
-
Yes, you can do that, since it's a PHP server, you just query to it using a HTTP library such as Edit: we converted this from an issue to a draft. |
Beta Was this translation helpful? Give feedback.
-
Appreciate the guidance, kyranet. I guess the alternative is call the Discord API directly with PHP? |
Beta Was this translation helpful? Give feedback.
Afaik nothing stops you from calling said API yourself, or porting that PHP script to Node.js for that matter.
I don't think this should be something the library should do, specially when there can be many factors, such as using different protocols (RPC, WS, AMQP such as RabbitMQ...) in either unencrypted, encrypted with TLS/SSL, or SSH-tunneled.
As you'd notice, this can be a very complicated thing, and would easily go outside of what the library should handle.