zorkmid
v1.0.2
Published
zork slack bot
Downloads
5
Readme
zorkmid
by Elvin Yung
Botstrap plugin for playing Zork from Slack.
Kinda hacky. The core of the plugin basically spawns child processes running expect
, which spawns a child process running zork1
, and then does a bunch of string manipulation to remove all the ANSI escape codes and extraneous spaces from stdout.
Instructions
Install Zork. (I got it from here, for OSX.)
Sample bot using zorkmid
:
var botstrap = require('botstrap');
var config = getConfigSomehow();
botstrap.createBot(config);
botstrap.command('zork', require('zorkmid'));