Home > Matters Technical > A thing I made: 2edStatBot, for all your Twitter old-school RPG needs.

A thing I made: 2edStatBot, for all your Twitter old-school RPG needs.

Monday, 28th January, 2013 Leave a comment Go to comments

I’ve been toying with the idea of, and over the weekend finally got around to finishing, a silly little Twitter bot, 2edStatBot, which generates a set of AD&D 2nd Edition stats — old school, 3d6 in order — picks a class recommendation based on a not-very-sophisticated algorithm (re-rolling if it can’t find a recommendation, which in practice means if every stat came out below 9), and tweets the result, every ten minutes:

The code is basically just Darius Kazemi’s Metaphor-a-Minute, except with all the metaphor-related guts replaced by random-number-related guts, and like Darius’s bots, it’s running on Nodejitsu (in fact, since Nodejitsu requires apps to respond to HTTP requests, I figured that endpoint might as well do the same thing as the Twitter bot, so if you want, you can go get a D&D character there, too).

I’ll upload the source code here shortly; it’s rather hacky but it works. I should probably put it on some public source control repository or something, but I never did figure out git. At some point I plan to make it respond to mentions, so you could tweet “@2edStatBot roll me a ranger” and it would respond with an appropriate set of stats.

About these ads
  1. Jamie
    Monday, 28th January, 2013 at 16:39 | #1

    Thanks for posting this! I like the idea of having it respond to mentions. Maybe I’ll try to figure that out myself, and since I *did* figure out git, I’ll post it. ;)

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 1,214 other followers

%d bloggers like this: