GithubHelp home page GithubHelp logo

kodie / lyrcper Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 8 KB

A Twitter bot that posts randomly generated wallpapers with song lyrics.

License: MIT License

JavaScript 100.00%
twitter bot twitter-bot wallpaper flickr musixmatch random javascript nodejs image

lyrcper's Introduction

A Twitter bot that posts randomly generated wallpapers with song lyrics.

Usage

node index.js

Installation

  1. Clone this repository.
  2. cd lyrcper
  3. npm install
  4. cp settings-example.json settings.json
  5. Open up settings.json in your favorite text editor and fill in your API credentials for Musixmatch, Flickr, and Twitter.

How to get Musixmatch API credentials

  1. Create a free Musixmatch account here: https://developer.musixmatch.com/signup
  2. Go to the account verification link that they sent to your e-mail and log in to your new account.
  3. Go to the applications section of your dashboard here: https://developer.musixmatch.com/admin/applications
  4. You should see "(Your Username)'s App". Click on the "View" link to the right of that.

Your API key will then be displayed.

How to get Flickr API credentials

API key/secret

  1. Create a free Flickr account here: https://www.flickr.com
  2. Log into your account and create a new Flickr app here: https://www.flickr.com/services/apps/create/noncommercial/

Your API key and secret will be displayed after creating the app.

Access token/secret

  1. cd into the directory where you cloned the lyrcper repository.
  2. npm install prompt-promise opn
  3. node flickr_token.js
  4. Follow the on-screen directions.

Your access token and secret will then be displayed.

How to get Twitter API credentials

API key/secret

  1. Create a free Twitter account here: https://twitter.com/signup
  2. Log into your account and create a new Twitter app here: https://apps.twitter.com/app/new (Leave the callback URL blank)
  3. On the next page, click on the "Keys and Access Tokens" tab.

Your API key and secret will then be displayed.

Access token/secret

  1. cd into the directory where you cloned the lyrcper repository.
  2. npm install node-twitter-api prompt-promise opn
  3. node twitter_token.js
  4. Follow the on-screen directions.

Your access token and secret will then be displayed.

Settings

lyrcper uses the lyric-paper module to generate the wallpapers, therefore you can use any options that it uses as everything inside of settings.json is passed straight to it.

See https://github.com/kodie/lyric-paper#options for a list of options that you can set.

License

MIT. See the License file for more info.

lyrcper's People

Contributors

kodie avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.