botsin.space Mastodon bot migration update to https://mastodon.kevinhooke.com/

Quick update on my progress so far on migrating my personal Mastodon bot projects from botsin.space:

So far I have updated and moved:

  • kevinhookebot – over the years this evolved into multiple AWS Lambdas that implemented different parts of functionality. The RNN model text generation Lambda is updated and redeployed and now posting updates every 3 hours at https://mastodon.kevinhooke.com/@kevinhookebot
  • The Lambda that listens to mentions ‘@’ the bot is updated and redeployed. to AWS, it checks for mentions every 5 minutes and replies with a random response, or the adventure game replies if you ‘@’ the bot with ‘go north’ or similar command

The other bots that developed over the years (that never got moved to Mastondon with the others) are either still active on X (assuming that Twitter API and credentials are still working) or no longer working, but are on my todo list to update and move soon:

The Zork adventure game bot that was running on botsin.space also needs to be migrated to https://mastodon.kevinhooke.com/home

Planning Twitter bot to Mastodon migration / updates – what do I have running right now?

The odd thing about personal bot projects is that after you’ve deployed them and they’re up and running, unless apis change and need to be updated, there’s not much needed to keep them running, if anything. Some of my first bots I deployed as AWS Lambdas I’ve had running several times a day for 5 years. In this time AWS Lambda supported runtimes have come and gone out of support, so the Node6 runtime I was originally using has now definitely passed it’s official support.

This is mostly a todo list to help consolidate my todo list of bots that I need to look at as part of my migration from Twitter to Mastodon, but if you search you can find my previous posts that describe how these were built.

@kevinhookebot

Mostly migrated to @kevinhookebot@botsin.space on Mastodon but running on Twitter and Mastodon at the same time. Sends the same generated text to both at the same time, but replying to the bot either on Twitter or Mastodon will interact with just that bot on that account.

My first Twitterbot project, and has now tweeted over 11k times since 2018 when it went live. This comprises multiple Lambdas to provide different features:

  • a trained RNN text generation model generates random text and tweets every ~ 3 hours. One scheduled AWS Lambda generates the text and inserts to a DynamoDB table. Another scheduled Lambda reads the next tweet from the table and tweets using Twitter’s apis.
  • A scheduled Lambda runs every minutes calling a Twitter api to check for replies and tweets at this account. It replies with one of a number of canned replies
  • If you tweet at this bot with ‘go north|south|east|west it replies with a generated response typical of a text based adventure game. The replies are generated with a template and randomly inserted words (it isn’t actually a game)

@productnamebot

Tweets randomly generated product names using lists of key words. Not yet migrated to Mastondon. Has tweeted 7k times since 2018

@blackjackcard

A BlackJack cardgame bot. Not migrated to Mastodon yet. @ the bot with ‘deal’ to start a game. Tracks game state per player in DynamoDB. Uses Twitter apis to check for replies to the game bot every 5 minutes.