Loading repository dataβ¦
Loading repository dataβ¦
ericksonl / repository
π¦π BirdWatcher is a powerful Discord bot designed to track the growth of Twitter followers. Stay updated with daily notifications and customize your tracking preferences. Please note that starting from February 9th, 2023, Twitter API requires payment. Get valuable insights into follower trends with BirdWatcher!
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
BirdWatcher is a Discord bot that will track the new followers of a Twitter user. This bot is fully customizable, allowing you to track anyone with under 10,000 followers. Updates are sent out daily at 6am, 10am, and 2pm (your machine's local timezone).
On February 9th, 2023 Twitter will begin charging users to use their API. This will make this bot unusable without paying for Twitter's API. Basic Tier access is available, but this has made the BirdWatcher un-scaleable. See more info on the Twitter API Documentation
Note: BirdWatcher uses Discord slash commands
| Command | Description | Arguments | Requirements | Usage(s) |
|---|---|---|---|---|
/add | Adds a user to be tracked! | Channel Username | - Must be a valid text channel - Must be a valid twitter username | /add general elonmusk |
/remove | Removes one of the users being tracked | Username | - Must be a user that is currently being tracked | /remove elonmusk |
/tracked | Displays all users currently being tracked | None | None | /tracked |
/request | Request an update for a tracked user | Username | - Must be a user that is currently being tracked | /request elonmusk |
/help | Displays all the commands of the bot. Providing the name of a command will return all available information about that command. | Command | None | /help /help command |
Before running this on your local machine, you will need to do the following:
Bearer tokenToken and Client ID Token. A guide to do this can be found hereAfter you have the necessary requirements, run the following commands:
git clone https://github.com/ericksonl/BirdWatcher.git
cd BirdWatcher
npm install
After installation finishes, follow configuration instructions. Run node . to start the bot.
Create a .env file in the project root following this outline:
DISCORD_TOKEN=<Discord Token>
CLIENT_ID=<Discord Client ID>
TWITTER_BEARER_TOKEN=<Twitter Bearer token>
DATABASE_TOKEN=<MongoDB Connection String>
Locate line 64 in bot.js. Change the cron_value to your desired update times. Cron values are written in the following format:
| * | * | * | * | * |
|---|---|---|---|---|
| Minute | Hour | Day | Month | Day of the week |
Examples:
cron_value = 5 * * * * //this will output every 5 minutes
cron_value = 0 5 * * * //this will output everyday at 5am
cron_value = 0 5 4 * * //this will output on the 4th of every month at 5am
cron_value = 0 5 4 5 * //this will output on the 4th of May at 5am
For additional help and info on cron values see their official website