Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/olithissen/monkeyislandbot_mastodon
https://github.com/olithissen/monkeyislandbot_mastodon
mastodon-bot monkey-island monkeyisland nodejs serverless-framework
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/olithissen/monkeyislandbot_mastodon
- Owner: olithissen
- Created: 2022-10-30T20:00:59.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-27T11:29:53.000Z (12 months ago)
- Last Synced: 2023-11-27T12:34:33.395Z (12 months ago)
- Topics: mastodon-bot, monkey-island, monkeyisland, nodejs, serverless-framework
- Language: JavaScript
- Homepage:
- Size: 198 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
The Mastodon Bot is available at
* π©πͺ https://social.tchncs.de/@monkeyislandbot
* πΊπΈ https://social.tchncs.de/@monkeyislandbot_en
# monkeyislandbotA 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
- Node.js >= 16
- Serverless (https://www.serverless.com/)
- AWS CLI (and a working AWS account, obviously)## Test locally
- Create a new application on your instance of choice (https://mastodon.social/settings/applications)
- Make sure you have the `write:statuses` scope activated
- Clone and `npm init````
sls invoke local -f mibot --verbose --stage dev \
-e ACCESS_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.