From ebf95dd634d7b78a73a69d8fccc80c6bf80b19d4 Mon Sep 17 00:00:00 2001 From: Al Murray <2515630+rogueyoshi@users.noreply.github.com> Date: Wed, 11 Aug 2021 14:32:09 -0400 Subject: [PATCH 1/3] Quick fix for missing Twitter auth --- index.js | 1 + 1 file changed, 1 insertion(+) 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(', '); From cd66a4f15f0e5d56df488d52f155053e9bf1c300 Mon Sep 17 00:00:00 2001 From: Al Murray <2515630+rogueyoshi@users.noreply.github.com> Date: Mon, 16 Aug 2021 00:17:45 -0400 Subject: [PATCH 2/3] Added start script Just to make it idiomatic for NPM packages --- package.json | 3 +++ 1 file changed, 3 insertions(+) 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" } } From 0b40f87a5c07c1216953e88441a9287f7e43f4ac Mon Sep 17 00:00:00 2001 From: Al Murray <2515630+rogueyoshi@users.noreply.github.com> Date: Mon, 16 Aug 2021 00:21:50 -0400 Subject: [PATCH 3/3] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) 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!