Quote of the Day

// The boring nerd part

I coded a simple shell script that pulls from a file on my site to generate a random quote. I talked a bit about it in this blog post here.

The best way to use it in the command line is to use 'wget -pO-' with the link. The code below is what I use.

wget -pO- https://forks04.neocities.org/files/qotd/newquote.sh

That's it. Just that simple line in anything capable of running shell code, and it will print/return (depending on where it's used) a random quote pulled from the text file (found at ./projects/qotd/qotd.txt)

// The sad part

Now on to the text file. What you see below this should be the embedded output of the text file. If it ever gets too long I'll probably make it a dropdown, but it SHOULD still be there. I was going to have a section at the bottom of the text box that allowed people to input options to the text file, but it turns out javascript done by the user cannot perform server side text file editing. And since I don't know how to use php, I tried to whip up a shitty comment box based on my remedial javascript knowledge, but I don't think neocities lets me do stuff like that. So idk man just email me or something. I need to host this site myself man.