DEV Community

loading...

Discussion on: Twitch notifications (part one): How to handle real-time events from Twitch

Collapse
dwtoledo profile image
Comment marked as low quality/non-constructive by the community. View Code of Conduct
Douglas Toledo

Dear Aydrian, how are you?
I am not able to test the full code using the command "TWITCH_SIGNING_SECRET=purplemonkeydishwasher node index.js".
The error is: ""TWITCH_SIGNING_SECRET=purplemonkeydishwasher" was not recognized as cmdlet name, function, script file or....

May you help me?

Collapse
aydrian profile image
Aydrian Author

Hi Douglas. I'm doing well. Thank you.
What operating system are you using? This should work in unix based terminals.

You can also do this in 2 steps. First, you can set the environment variable by just entering TWITCH_SIGNING_SECRET=purplemonkeydishwasher into the terminal. You can check it my then entering ECHO $TWITCH_SIGNING_SECRET in the terminal and it should respond with purplemonkeydishwasher. Then you can run node index.js.

I hope this helps. I'm working on an update coming soon where I have it running in a Netlify function.

Forem Open with the Forem app