Skip to content

Update index.js - #2

Open
styphoiz wants to merge 1 commit into
EntelectChallenge:mainfrom
styphoiz:patch-2
Open

Update index.js#2
styphoiz wants to merge 1 commit into
EntelectChallenge:mainfrom
styphoiz:patch-2

Conversation

@styphoiz

Copy link
Copy Markdown

Default token not added similar to last year's issue.

@JeniquePeters

Copy link
Copy Markdown

Hey Styphoiz!

Thanks for raising this! I will look into this and see why the token is not being added 😊.

Have you tried to pass in the token as an environment variable and it is not being found?

@styphoiz

Copy link
Copy Markdown
Author

Hi, no, it helps to auto generate this should you not put it into your env, code is from 2022 starter bot.

@JeniquePeters

Copy link
Copy Markdown

So, for tournament purposes, we have decided to remove the random generation of the token. The reasoning for this is that; passing in the token as an environment variable is necessary for how the tournaments run. Randomly generating a token within your bot would mean that your bot would be unable to participate in the tournaments. So we would rather you pass in the GUID as an environment variable. So that you know for sure your bot will run when it is started up in the cloud services.

I hope that clears things up! You can also have a look at this forum post for a more detailed answer 😊 https://forum.entelect.co.za/t/my-notes-quickstart-getting-javascript-bot-to-work/1677/3?u=jenique

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants