Help to send information to php file

Asked Nov 21, 2023·1 reply·Last activity 2 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

I have the following php code:

https://pastebin.com/P5BWVzz0

where [user] appears I need to insert the user of the person in twitch, $(user), I don't know how to send the user to the code

1 reply

Hey @Rowdy Zebra!

You have to create an API for your code, and then send $(user) to the API, for example as queryParam:

$(urlfetch https://your.api/api-endpoint?user=$(user))

Nightbot doesn't work with PHP, but Javascript.