aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Matei Pintilie <lucafulger@gmail.com>2022-10-19 16:54:35 +0000
committerLuca Matei Pintilie <lucafulger@gmail.com>2022-10-19 16:54:35 +0000
commita7126fe2ff5fb94ad6408f6316b70920ff0b5260 (patch)
treeba064350562ab1dac8e8e586dadcfa5867451499
parentbb5ca220b1ccc3a9d9f238017b6a6d2f17db6081 (diff)
downloadspeedrunbot-slash-a7126fe2ff5fb94ad6408f6316b70920ff0b5260.tar
speedrunbot-slash-a7126fe2ff5fb94ad6408f6316b70920ff0b5260.tar.gz
speedrunbot-slash-a7126fe2ff5fb94ad6408f6316b70920ff0b5260.tar.bz2
speedrunbot-slash-a7126fe2ff5fb94ad6408f6316b70920ff0b5260.tar.lz
speedrunbot-slash-a7126fe2ff5fb94ad6408f6316b70920ff0b5260.tar.xz
speedrunbot-slash-a7126fe2ff5fb94ad6408f6316b70920ff0b5260.tar.zst
speedrunbot-slash-a7126fe2ff5fb94ad6408f6316b70920ff0b5260.zip
Add games list to world-records command
-rwxr-xr-xsrc/srcom/world_records.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/srcom/world_records.ts b/src/srcom/world_records.ts
index 7f29990..23de2de 100755
--- a/src/srcom/world_records.ts
+++ b/src/srcom/world_records.ts
@@ -38,7 +38,13 @@ export async function worldRecords(
}
});
- output.push(`World Record Count: ${user.names.international}`);
+ output.push(
+ `World Record Count: ${user.names.international}${
+ gameObjs.length
+ ? " - " + gameObjs.map((game) => game.names.international).join(" and ")
+ : ""
+ }`,
+ );
output.push(`${fmt.bold("Fullgame")}: ${fullGameRuns}`);
output.push(`${fmt.bold("Individual Level")}: ${individualLevelRuns}`);