Reputation: 1
So I have created a local web server that uses jQuery. I also have a Twitch IRC bot which utilizes node.js along with the TMI and TwitchAPI library.
Goal I want to use the local web server to manage the IRC bot. For instance, the local server would have START_Button which would run a Connect method within the IRC Bot.
Problem: How would I execute a node.js script using a simple HTML input button. When I call the Connect method, I get a require(...) is not defined and found out why with a little research .
Any ideas?
Upvotes: 0
Views: 67
Reputation: 214
If you want to run Node.js script on button press, you should:
Upvotes: 3