Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zoetrope69/random-color-contrasts
⚫🌈⚪ A Mastodon bot that grabs colours contrast combos Inspired by and code stolen from: randoma11y.com
https://github.com/zoetrope69/random-color-contrasts
a11y accessibility bot color-contrast mastodon random
Last synced: about 2 months ago
JSON representation
⚫🌈⚪ A Mastodon bot that grabs colours contrast combos Inspired by and code stolen from: randoma11y.com
- Host: GitHub
- URL: https://github.com/zoetrope69/random-color-contrasts
- Owner: zoetrope69
- Created: 2018-10-09T18:35:55.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-02-14T19:47:37.000Z (10 months ago)
- Last Synced: 2024-04-13T14:05:28.383Z (8 months ago)
- Topics: a11y, accessibility, bot, color-contrast, mastodon, random
- Language: JavaScript
- Homepage: https://botsin.space/@randomColorContrasts
- Size: 572 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# random color contrast bot
⚫🌈⚪ A Mastodon bot that grabs colours contrast combos
Inspired by and code stolen from: [randoma11y.com](https://randoma11y.com)
## How does the bot work?
You can follow the bot on @[email protected].
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 step4. Run the application!