diff --git a/README.MD b/README.MD index f8e82ac..672d11b 100644 --- a/README.MD +++ b/README.MD @@ -10,6 +10,10 @@ The name 'Parsee' is actually a reference to [Parsee Mizuhashi](https://en.touho I hate Bifrost. I also wanted to dip my toes in XMPP, XML, and bridges a bit. Also, as a sister project to KappaChat, this means that I can integrate Parsee with KappaChat however I wish it to be, which allows me to mess around with a codebase I'm already familiar with. +A more "up-to-date" reason may be to have a small, 'Just Werks' bridging solution *that is good*. +Well, I'm *trying* to do that, at least. Please scream at me if that fails(or just doesn't run +on a overclocked Raspberry Pi 4B, which, by the way, was literally where Parsee+XMPP ran for +a good chunk of Parsee's start.) ### "Why not just use Matrix lol" ### "Why not just use XMPP lol" diff --git a/src/Routes/Root.c b/src/Routes/Root.c index a576919..578dc20 100644 --- a/src/Routes/Root.c +++ b/src/Routes/Root.c @@ -3,6 +3,7 @@ #include #include #include +#include #include @@ -25,6 +26,34 @@ HasAdmin(ParseeData *data) return ret; } +static const char * +GetRandomQuote(void) +{ + const char *quotes[] = + { + "Kinda jealous of that, to be fair.", + "*(noms)*", + "Why look inward when you can challenge the mainstream " + "media?", + "Boo!", + "[...] I can make up lots of reasons to attack you.", + "Go Kontribute to C99 projects!", + "We truly live in a " CODE "...", + "You truly lack the Desire Drive for this!", + "Eeh? Bifrost mode? Only bad servers use Bifrost mode!", + "As small as a dwarf, and can run on your pie!", + "It's all wicked unsafe, memory slow 🚀🚀🚀🚀", + + "XMPP kinda sucks.", + "Matrix kinda sucks.", + + "Throw jabs!" + }; + const size_t count = sizeof(quotes)/sizeof(*quotes); + + return quotes[RandInt(count) % count]; +} + RouteHead(RouteRoot, arr, argp) { ParseeHttpArg *args = argp; @@ -39,6 +68,7 @@ RouteHead(RouteRoot, arr, argp) P(""); { P("%s Lander", NAME); + P(""); P("