MasterTemple / battlefront2017RankingsSWL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stayed Up Till 4 AM Making This

Screenshots

/rank

#leaderboards

Purpose

Tracks Data From Here. To allow for a /rank command to view stats (See Above) and auto update Discord roles to match the players current league.

Setup

  1. run npm install
  2. add a config.json into ./data/ that looks like this
{
    "token": "YOUR_TOKEN_GOES_HERE",
    "leaderboardChannelId": "886716934714978334"
}
  1. add a creds.json into ./data/ which is the downloaded JSON credentials you get for creating a Google desktop application. Looks something like this
{
  "type": "service_account",
  "project_id": "Star Wars Leagues",
  "private_key_id": "SECRET_STUFF",
  "private_key": "-----BEGIN PRIVATE KEY-----LOTS_OF_SECRET_STUFF-----END PRIVATE KEY-----\n",
  "client_email": "star-wars-leagues@star-wars-leagues.iam.gserviceaccount.com",
  "client_id": "123456789",
  "auth_uri": "https://accounts.google.com/o/oauth2/auth",
  "token_uri": "https://oauth2.googleapis.com/token",
  "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
  "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/star-wars-leagues%40star-wars-leagues-123456.iam.gserviceaccount.com"
}
  1. run node index.js

About

License:MIT License


Languages

Language:JavaScript 100.0%