GithubHelp home page GithubHelp logo

lukeirvin26 / random-game-picker Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 36 KB

Simple node.JS script to fetch a random game either the IGDB or RAWG.io API

JavaScript 98.53% Batchfile 1.47%
rawg game-picker random choice-maker decision-maker nodejs cmdline terminal igdb random-game

random-game-picker's Introduction

random-game-picker

Simple node.JS script to fetch a random game from RAWG.io API or IGDB.com

IGDB.com is given priority as it has more relevant games for the most part. However RAWG will pop up too for the more obscure games. Make sure you have NodeJS installed.

To start getting random games, do the following:

  1. Run npm install axios
  2. Run npm install open
  3. Run npm install weighted-random
  4. Sign up for a Twitch account if you do not already have one, otherwise, login.
  5. Enable Two Factor auth on your Twitch account.
  6. Register an application for your gamepicker app.
    1. OAuth Redirect URLs can just be http://localhost.
    2. Category can be Application Integration
  7. Once registered, manage your application you just created
  8. Generate a Client Secret.
  9. Open gamepicker.bat and change the line cd [YOUR_PATH_HERE] to reflect the directory where the folder was cloned to. (This is useful because you can move the batch file elsewhere, and create shortcuts to run the batch file)
  10. Open gamepicker.js and change the constants twitchClientID and twitchClientSecret to reflect the client ID and the client secret you generated. These can both be found on the screen that you generated the secret on in Step 9.
  11. Run node gamepicker.js

Your default browser will automatically open to the page on either IGDB or RAWG.io for the game that was selected! Have fun gaming!!

random-game-picker's People

Contributors

lukeirvin26 avatar

Stargazers

 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.