Skip to content

olithissen/monkeyislandbot_mastodon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Mastodon Bot is available at

monkeyislandbot

A Mastodon-port of my Twitter bot (@monkeyislandbot) posting monkey island quote, but it could tweet basically anything. (BTW: If you're wondering how I got the quotes out of the game in the first place: https://github.com/olithissen/MonkeyBusiness)

Prerequisites

I'm using https://mastodon.social in the examples but of course you can and should pick the instance of your choice.

Tools

You will need the following tools installed and configured

Test locally

sls invoke local -f mibot --verbose --stage dev \
 -e ACCESS_TOKEN=<your application acess token> \ 
 -e API_URL=https://mastodon.social/api/v1/

Deploy to AWS

As seen above, the bot requires two environment variables, ACCESS_TOKEN and API_URL. The serverless.yml maps them from the Systems Manager parameter tab. Create two parameters: mibot_mastodon_de_access_token to map to ACCESS TOKEN and mibot_mastodon_de_api_url for API_URL.

Then get some coffee and wait for serverless deploy to do its work.