Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How i can find bot-config.json? #27

Open
YukaNozomi opened this issue Aug 19, 2020 · 8 comments
Open

How i can find bot-config.json? #27

YukaNozomi opened this issue Aug 19, 2020 · 8 comments

Comments

@YukaNozomi
Copy link

I looking in all file but not found it.Could you help me?

@Malexion
Copy link
Owner

Sure in the main folder you'll want to create a bot-config.json file if it does not already exist. Running the application once will also create it.

Contents of the file look as follows, and you replace everything between " quotes with your token.

{
    "discord": {
        "token": "token-here"
    }
}

Token comes from the discord developer portal after you make an "app" here:

Where to get the token

@camden-git
Copy link

Should you close this issue as it was resolved?

@mattzaharias
Copy link

I also had to manually create my bot-config.json file, fortunately it is very small/short as per above.

@IoALFANO
Copy link

@Malexion you should create the file bot-config.json like that :

{
    "discord": {
        "token": "token-here"
    }
}

It will be easier for people to setup the bot.

@Malexion
Copy link
Owner

Yeah I used to have it checked in but then I kept committing my api so I kept having to regenerate them

@theyonatan
Copy link

was also stuck here,
this helped. thank you!

i recomend to add this to the "installation" part on the main page.

@dudeofawesome
Copy link
Contributor

Just FYI, there's a bug in the default config generation code which prevents it from actually creating the file.

the writeJson method is async, but isn't awaited, and then the file (which hasn't started writing to disk yet) and immediately required, throwing an exception and halting execution before the json can be written to disk.

@Malexion
Copy link
Owner

Should be resolved in the latest commit

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

No branches or pull requests

7 participants