Update index.js - #2
Conversation
|
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? |
|
Hi, no, it helps to auto generate this should you not put it into your env, code is from 2022 starter bot. |
|
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 |
Default token not added similar to last year's issue.