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.
- run
npm install
- add a
config.json
into./data/
that looks like this
{
"token": "YOUR_TOKEN_GOES_HERE",
"leaderboardChannelId": "886716934714978334"
}
- 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"
}
- run
node index.js