Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zoetrope69/please-caption-mastodon
✏️🖼️ a Mastodon bot that reminds you to caption your toots' images and videos
https://github.com/zoetrope69/please-caption-mastodon
a11y accessibility bot mastodon mastodon-bot
Last synced: about 2 months ago
JSON representation
✏️🖼️ a Mastodon bot that reminds you to caption your toots' images and videos
- Host: GitHub
- URL: https://github.com/zoetrope69/please-caption-mastodon
- Owner: zoetrope69
- Created: 2018-09-11T14:21:47.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-09-15T03:06:59.000Z (over 1 year ago)
- Last Synced: 2024-04-13T12:57:36.120Z (8 months ago)
- Topics: a11y, accessibility, bot, mastodon, mastodon-bot
- Language: JavaScript
- Homepage: https://botsin.space/@PleaseCaption
- Size: 2.85 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Please Caption Mastodon Bot
Based on [a bot I used to use on Twitter called Please Caption](https://twitter.com/pleasecaption). It would message you when you forgot to put text descriptions (also know as 'alt text' or 'captions').
The difference with this bot is as you can send direct messages to statuses (toots) on Mastodon you can have a less spammy bot that messages privately.
Mastodon also lets you edit toots so you can easily add text descriptions.
## How does the bot work?
You can [follow the bot on @[email protected]](https://botsin.space/@PleaseCaption).
When you post any media (images and videos) without text descriptions, it will respond with a message.
## Installing the bot
1. Install dependancies
```bash
npm install
```2. Create a Mastodon application and get the access token
> You can do this from the settings in Mastodon. There's a 'Development' section. Give the bot all permissions.
3. Add environment variables
- `MASTODON_API_URL` is the URL for the instance you're on.
- `MASTODON_ACCESS_TOKEN` is the access token from the previous step
- `BOT_ENDPOINT` is the endpoint you'll be sending requests to to get it to run tasks3. Set-up script to ping bot endpoint.
The bot will unfollow and follow users ever so often when you hit a specific endpoint. If your server is 'https://example.com' and your `BOT_ENDPOINT` is 'specialsecret' the URL would be 'https://example.com/specialsecret'.
Then you can use something like [Uptime Robot](https://Uptimerobot.com) to send requests to that URL ever so often.
## Changelog
- We began notifying people when they boosted un-captioned content (see [PR](https://github.com/zactopus/please-caption-mastodon/pull/5)) but we have reverted this feature because there isn't a reliable way to detect edits to boosts (see [issue](https://github.com/zactopus/please-caption-mastodon/issues/12))