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)) || "";