Spreading the word about @microverseinc!
Follow
·
Report Bug
·
Request Feature
Microvot is a simple bot that periodically search Twiter for tweets mentioning @microverseinc, and retweets them in a batch.
It uses GitHub Actions on a scheduled interval. You can take a look at the action here.
The Twitter API allows to search using the since_id
parameter, so we stored the max_id
of the last search we have seen on a gist, and on the next search we use that max_id
as the next since_id
. That way we get only the new tweets made after each search.
- Node.js
- GitHub Gist
- GitHub Actions
To get a local copy up and running clone the repository and move into the directory:
git clone https://github.com/mauriciorobayo/microvot.git
cd microvot
Go to Twitter Developer to create a new app and get the keys and tokens.
Once you get the keys and tokens, copy the .env.sample
file to a .env
file in the root of the project, and copy-paste your credentials.
You will also need a GitHub personal access token with gist
scope to copy-paste into the .env
file.
To install the dependencies of the project run npm install
.
You will need to generate an initial empty gist, once you have it, you'll need to update the info to the gist on src/memo.js
You can clone this project and use at as a template to create your own bot that periodically does a search on Twitter and retweets whatever you want.
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License.
Mauricio Robayo - @MauricioRobayo.
Project Link: https://github.com/MauricioRobayo/microvot