Zork (Dungeon)
I was messing around with the Mastodon API and also I found the old Dungeon code (circa ’91). It looks like old Fortran code that was converted to C, as it has 1318 goto: statements. I decided to hook it up to Mastodon and stability AI for images.
The result is here https://mstdn.ca/@zork
I added a few features to the bot.
/help - prints help message /restart - restarts the game. Currently it keeps the set of images it generated for that user. /images - toggles images generating/posting on/off. cmd:cmd:cmd - you can string multiple commands together and receive multiple outputs
Some items of note during development.
- Modification of the program to allow the use of different save/restore files.
- Modification of the program to remove system/shell commands and a few other safety features.
- I only get images in specific cases. (the description has to be >= two sentences, but less than 400 characters). This avoided generating images for stupid things like “Leaflet Taken” .. which I may re-enable once I see the impact of cost.
- You can only attach a media object to a single post. So if a user “looks” then “looks” again, I have to re-upload the image. Which is crap/wasteful
- The images from stability_ai are often hilarious and stupid, this was expected 🙂
- TODO: move the program off my desktop to a VM somewhere. Have it register for web-push notifications to avoid polling.
Filed under: Uncategorized - @ December 30, 2022 3:33 pm