I’m having issues trying to set up a Twitter bot on Glitch that will post a random image pulled from a remote server.
My project (random-mcu) is remixed from a standard Twitter bot, adding code from Random Image Twitterbot, which relies on pulling the images from Glitch’s assets folder. Since I have tens of thousands of images in my pool, I’m hosting them on my own website, but I’m running into this error:
Error: ENOENT: no such file or directory, scandir ‘http://www.erinlynch.me/randommcu/images/’
I’ve made sure the directory’s permissions aren’t restricting access, but haven’t been able to get around the error. Is there something I’m missing?
Thanks for any help!