Frivolity : PrakBot
19 Jun 2007
So, what happens if you have
1) A slightly bored coder (or at least, a coder 'temporarily seeking direction')
2) ... who is curious about the ins and outs of the XMPP API
3) ... and has a near-lifetime love of 'The Hitchhiker's Guide to the Galaxy' (my folks bought me a Sony Walkman in 1982 with a tape of the audiobook - I was hooked)
Well, in my case this

It uses the Smack XMPP API to hook up a Z-Machine implementation to a Jabber account. If I can come up with a workable way of limiting messages to 140 characters, I might hook it up to Twitter ...
In case anyone's wondering, the Walkman still works.
Posted at 10:47 AM \\ Permalink \\


Wow! This is great, really amusing. Could spend hours on this :D
Good job ;)
Posted by: Camille | Saturday, August 04, 2007 at 08:10 PM
Haha! I used to play this on my C64!
Posted by: Barfly | Sunday, August 05, 2007 at 02:27 AM
Maybe we should all just remeber this...
(quietly)
breath in.....
breath out .....
(pause)
breath in.....
breathe out...
(rapdily) AND THEN GO
AGRRELJRELJRLEJRL ERLJLJFJLKJEJL !!!!!
(but, as long as you know where your towel is, - even if it's at the bottom of a trash heap on Alondis four, been trans formed into offal, and
mulled over by the "cousel of the sighted"
- v. odd, considering that the inhabitants
of alondis four are SIGHT-LESS (no eyes = SIGHTLESS)
peace, frood.
peace.
but: not a staic peace liek "death"
but, a dynamic one
like
art, music, hitory, wonder'wander, and etc
or more properly
music, art, conversation (MAC),
and wonder/wander, and & etc
-- frank.
Posted by: Frank | Sunday, August 05, 2007 at 08:07 AM
I remember when this was done with AIM bots a few years back: http://www.waxy.org/archive/2004/03/21/infocomb.shtml - a great game :)
Posted by: Matthew | Sunday, August 05, 2007 at 12:32 PM
I need an analgesic, and have you seen my sunglasses?
Posted by: mdhåtter | Sunday, August 05, 2007 at 02:24 PM
Wow this is great. I hope it stays online for a while! This is ingenious, because it can really be used with all the text adventure games out there...
Would there be a way to save/load your progress? Maybe the program could spit out a code when you give it a !save command?
Keep it up!
Posted by: Gryzor | Sunday, August 05, 2007 at 03:28 PM
Sure. Type 'save' to save your progress, and 'restore' to reload the previous save.
It wasn't working this morning due to an oversight on my part, but it's working fine now.
Posted by: Ben Burry | Sunday, August 05, 2007 at 05:00 PM
What client is that you're using?
Posted by: kamagurka | Sunday, August 05, 2007 at 06:54 PM
how do I do this? how how? how?
Posted by: jenny | Monday, August 06, 2007 at 05:10 AM
If the client question was directed to me -- Google Talk.
Posted by: Gryzor | Monday, August 06, 2007 at 06:04 AM
For anyone wanting to give it a try, just connect to PrakBot@jabber.org in your favourite Jabber (XMPP) client (both GTalk and iChat will talk it).
The commands you need to know are
!startgame - starts a game
!stopgame - stops a game
!status - prints out your progress
As mentioned above, 'save' and 'restore' can be used to save your progress.
Oh, and the client shown in the pic above is Adium (http://adiumx.com/ ), a good little multi-protocol client for OSX.
Posted by: Ben Burry | Monday, August 06, 2007 at 08:25 AM
Ooh, save and restore do work! I take it your backend saves sessions per user-id... thanks so much! :)
Posted by: Gryzor | Monday, August 06, 2007 at 09:50 AM
Here's a guy who knows where his towel is!
BTW - Have you got the Bureaucracy game?
Posted by: Arthur P. Dent | Monday, August 06, 2007 at 02:12 PM
Brilliant icon! Nifty idea too.
Posted by: Alex Benn | Monday, August 06, 2007 at 09:30 PM
Ohhhh la la!! I want to try this with Wishbringer. Do you has open source?
Posted by: Chrissy | Monday, August 06, 2007 at 10:00 PM
Hey.
You do realize a HELL of a lot of IF writers would like this kind of thing? Just so you know.
Posted by: Jetamo | Wednesday, August 08, 2007 at 08:05 PM
I've been having an issue with Zork. I can't seem to pick up the sword in the house. I just get no response and it eventually timesout. I'm using GTalk and have used it via IE and Firefox.
Posted by: Dave | Thursday, August 09, 2007 at 01:06 AM
Looks like there's a bug in the ZMachine interpreter I'm using.
I've put a short-term fix in place that should let you progress beyond that point, but the long-term fix will be to move to a more up to date interpreter (such as ZMPP).
Posted by: Ben Burry | Thursday, August 09, 2007 at 02:27 PM
Ha!
I have been bouncing this around in my head for a few months with the same motivation as a project to brush up on my XMPP / python skills.
Nice work.
Posted by: Ryan | Thursday, August 09, 2007 at 08:33 PM
The bot appears to be down. It's not answering any requests :( I was partway into a game of phobos, and would like to continue.
If this is intentional, thank you muchly for running a cool service, even if it died an early death.
Posted by: Austin | Friday, August 31, 2007 at 06:02 PM
It came back up later that day. Who knows what the problem was. I can continue my mild addiction now, yay!
Posted by: Austin | Tuesday, September 04, 2007 at 06:01 PM
Aw shucks. Is this down? I was looking forward to playing.
Posted by: Paul | Monday, September 24, 2007 at 08:37 PM
Man, I can't live without this. Please bring it back.
Posted by: Paul | Wednesday, September 26, 2007 at 11:43 PM
I'm half way through Zork I. So just Zork II, III, Hitch Hikers and Phobos to go. I know this is something you've put up from the goodness of you're heart. I just wish it stayed up longer.
Posted by: Paul | Friday, October 05, 2007 at 04:28 AM
There's some strange behaviour in the XMPP library I'm using that keeps taking the bot offline.
I'm tracking down the problem and hope to make it more consistently stable soon. In the meantime I'll prod it back to life when necessary.
Posted by: Ben Burry | Friday, October 05, 2007 at 07:06 AM
prod prod :)
Posted by: Judge | Tuesday, October 09, 2007 at 11:57 PM