Running NETCore Bot

Hi i am encountering this error when running the NETCore bot in the StarterBots directory
image

This is the line causing the issue in Program.cs
image

How do i fix this?

Hi there :slight_smile:
Before that line, can you maybe add a console output to check what the values of “token” and “nickName” are? If token is null, you will need to set the Token environment variable before running the bot

1 Like

Thanks, the token variable was null. I refered to the ReferenceBot Program.cs and it said we must not generate a random token, do we have our own token designated for the competition?

Hey @RIa :slight_smile:
Yes, you will have a token assigned during the tournament, you can read it from the Token environment variable.