diff --git a/project/src/generators/BotGenerator.ts b/project/src/generators/BotGenerator.ts index 7fc0a433..cd7aeca1 100644 --- a/project/src/generators/BotGenerator.ts +++ b/project/src/generators/BotGenerator.ts @@ -518,7 +518,7 @@ export class BotGenerator { */ protected setRandomisedGameVersionAndCategory(botInfo: Info): string { // Special case - if (botInfo.Nickname.toLowerCase() === "nikita") { + if (botInfo.Nickname?.toLowerCase() === "nikita") { botInfo.GameVersion = GameEditions.UNHEARD; botInfo.MemberCategory = MemberCategory.DEVELOPER;