Qwertie
Joined 10 years ago
Karma
239
Submissions
132
Member since
Feb 19
Joined 10 years ago
Inside of animate() you are calling setTimeout() to automatically call animate repeatedly but this is also calling setTimeout() every time animate runs but setTimeout() should only be run once.
You should be able to take
setTimeout(() => {
animate();
}, 100);
and paste it over animate() on the last lineI have found Matrix to be easier to interact with. You need a HTTP client instead of netcat but it's super simple to send JSON from a program or terminal.