April 1st to the 7th
It’s been a bit of an odd week. Migraines were bad, but we managed to push through with some coding fun. Created three bots over the last two weeks.
The first is just a basic chatbot, with the normal simple commands. I used this with the pact book on node.js to familiarize myself a little with the node.js and twitch bots. It’s funny to think everyone thinks it’s new, but really they just made a GUI for the old IRC servers. They also made it stupid complicated to do anything by limiting it to node.js, but meh, with basics only needed for this particular
The next bot I wrote in javascript on my local computer, and tested and had it all working. The tried to move it over to the glitch servers, and intergrate it into the node.js bots. Turns out that is a huge pain in the kester. Specifically node.js and it’s refusal to pass variables between functions, it’s more likely to pass down layers, than up. And then you have the issue with the http request/get/etc which does not release it’s variables for rawData, or body (basically the content you get in response to a basic AJAX request. Then it didn’t want to allow me to pass variables into it outside of the URL it’s to call. Eventually I found a pattern of calls that would work to produce the output I wanted. Then there’s the problem with the glitch server reloading things all the time, to conserver server resources. It means even if you have a bot account connected to the server, and your active and live, your bot can reload, if it reloads, your timer (for controling the server calls) is reset, and your code never excutes as expected. I think a dedicated VPS box is the only solution, which I’m not ready to deal with again yet. So that’s back burnered. It works, but not as I wanted.
Then we have last but not least the biggest pain in the but, and I only did it as an
It’s been a week. How was yours?