diff --git a/README.md b/README.md index 6101134..dddb506 100644 --- a/README.md +++ b/README.md @@ -69,4 +69,7 @@ Full Moon 9 - Under Night In-Birth Exe Late(st) top 8/47 Full standings: https://smash.gg/tournament/full-moon-9/events/under-night-in-birth-exe-late-st/standings ``` + +`npm run start -- full-moon-9` will do the same. + Be sure to yell at all the players that still haven't linked their Twitter accounts to smash.gg! diff --git a/index.js b/index.js index 9b2217d..d5bc42f 100644 --- a/index.js +++ b/index.js @@ -83,6 +83,7 @@ function placingString(nameMode, standing) { .filter(t => t != null) .map(user => user.authorizations) .filter(t => t != null) + .filter(authorizations => authorizations[0] != null) .map(authorizations => authorizations[0].externalUsername) .map(t => '@' + t) .join(', '); diff --git a/package.json b/package.json index 9b3cef2..9d15341 100644 --- a/package.json +++ b/package.json @@ -6,5 +6,8 @@ "dependencies": { "graphql-request": "^1.8.2", "node-fetch": "^2.3.0" + }, + "scripts": { + "start": "node index.js" } }