Skip to content

Simple Node JS script to change twitter profile photo automatically, according to the actual moon phase

Notifications You must be signed in to change notification settings

danangtomo/twitter-profilePhoto-moonPhase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TWITTER-PROFILE-PHOTO-MOON-PHASE

Simple Node JS script to change twitter profile photo automatically, according to the actual moon phase.

Things You should do

  • Register an account at Twitter Developer Platform to get API access and ensure the project has Elevated Access.
  • Register an account at Rapid Api to get API access for moon images.
  • Clone this repository using git clone https://github.com/danangtomo/twitter-profilePhoto-moonPhase.git.
  • After finished cloning, run command npm i to install all dependencies.
  • Create .env file in your local project.
  • In the package.json file, adjust the contents of the node and npm keys with the version you are using.
"engines": {
    "node": "<YOUR_VERSION>",
    "npm": "<YOUR_VERSION>"
  }
  • Change to your local time.
moment.utc().tz("Asia/Jakarta");
  • If you want to run on local, type the command npm start.

.env setup (local)

TWITTER_API_KEY="<YOUR_KEY>"
TWITTER_API_SECRET_KEY="<YOUR_KEY>"
ACCESS_TOKEN_TWITTER="<YOUR_KEY>"
ACCESS_SECRET_TOKEN_TWITTER="<YOUR_KEY>"

API_KEY="<YOUR_KEY>"
API_HOST="astronomy.p.rapidapi.com"

Dependencies

Name
axios
dotenv
express
moment-timezone
twitter-api-client

About

Simple Node JS script to change twitter profile photo automatically, according to the actual moon phase

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published