Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/karlbeecken/co2-twitter-bio
🔥 A Twitter bot that updates your Twitter bio with weekly atmospheric CO2 levels
https://github.com/karlbeecken/co2-twitter-bio
Last synced: 8 days ago
JSON representation
🔥 A Twitter bot that updates your Twitter bio with weekly atmospheric CO2 levels
- Host: GitHub
- URL: https://github.com/karlbeecken/co2-twitter-bio
- Owner: karlbeecken
- License: mit
- Created: 2020-06-21T10:28:33.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-28T21:57:59.000Z (over 2 years ago)
- Last Synced: 2024-10-20T17:17:53.707Z (29 days ago)
- Language: JavaScript
- Homepage:
- Size: 22.5 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
co2-twitter-bio 🔥
A Twitter bot that updates your Twitter bio/location with weekly atmospheric CO2 levels.
## Usage
To use this Twitter bot you'll need a Twitter developer account. Apply for one here: https://developer.twitter.com/en/apply-for-access_Hint: If you tell Twitter that you only want to use the API for educational purposes, you'll usually get access without further questions 🤫_
Then you will need to create a new app and set the app Permissions to **Read and Write**. You will need the following keys:
*consumer key*, *consumer key secret*, *access token key* and *access token secret*
(consumer keys may also be labeled as API key)You'll have to save them into GitHub Actions Secrets with the following names:
- `CONSUMER_KEY`
- `CONSUMER_KEY_SECRET`
- `ACCESS_TOKEN_KEY`
- `ACCESS_TOKEN_SECRET`Then you have to create another secret called `DESCRIPTION` with your desired Twitter bio/location prefix. It should end with something like "current co2 level:" as the current atmospheric CO2 level will be appended at the end.
For example my bio template looks like this: `"/dev/null | climate activist @FridayForFuture | born at 379ppm – currently"`
If you want to use the location field of your Twitter profile instead of the description, you can set the secret `TARGET` to `location` (it defaults to `description` so you don't have to worry about setting it when you are using it with the description) Then the the current atmospheric CO2 level will be appended to the set `DESCRIPTION` and saved in the location field.
Fun fact: the Twitter location field has a client side max of 30 chars but with the API you can set up to 150 chars. 🤯 This means that you can set up to 139 chars as your location prefix.
**Note**: you don't need to append a space to the end of the `DESCRIPTION` secret, as the bot does this for you automatically
That's it! 🎉 Now every day at 1 am your Twitter bio/location should update with the current atmospheric CO2 level informing other people about climate change 🔥