From bf0c8cb14e34823d161d70cac66041afb6cad3ee Mon Sep 17 00:00:00 2001 From: Pfych Date: Sun, 19 Sep 2021 13:08:36 +1000 Subject: [PATCH] use gpt instead of game for gamePlayType --- bot/src/utils/utils.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bot/src/utils/utils.ts b/bot/src/utils/utils.ts index 322fec0bb..9f64b5074 100644 --- a/bot/src/utils/utils.ts +++ b/bot/src/utils/utils.ts @@ -7,14 +7,14 @@ export interface SimpleGameType { playtype: Playtypes[T]; } -export const simpleGameTypeToString = (game: SimpleGameType): IDStrings => - `${game.game}:${game.playtype}`; +export const simpleGameTypeToString = (gpt: SimpleGameType): IDStrings => + `${gpt.game}:${gpt.playtype}`; -export const stringToSimpleGameType = (game: string): SimpleGameType => { - return { game: game.split(":")[0], playtype: game.split(":")[1] }; +export const stringToSimpleGameType = (gptString: string): SimpleGameType => { + return { game: gptString.split(":")[0], playtype: gptString.split(":")[1] }; }; -export const formatGameWrapper = (game: SimpleGameType): string => FormatGame(game.game, game.playtype); +export const formatGameWrapper = (gpt: SimpleGameType): string => FormatGame(gpt.game, gpt.playtype); export const capitalise = (s: string): string => (s && s[0].toUpperCase() + s.slice(1)) || "";