Rhythm-Bot icon indicating copy to clipboard operation
Rhythm-Bot copied to clipboard

How i can find bot-config.json?

Open YukaNozomi opened this issue 4 years ago • 8 comments

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

YukaNozomi avatar Aug 19 '20 06:08 YukaNozomi

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

Malexion avatar Aug 19 '20 14:08 Malexion

Should you close this issue as it was resolved?

camden-git avatar Nov 16 '20 20:11 camden-git

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

mattzaharias avatar Jan 07 '21 16:01 mattzaharias

@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.

IoALFANO avatar Feb 22 '21 20:02 IoALFANO

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

Malexion avatar Mar 19 '21 22:03 Malexion

was also stuck here, this helped. thank you!

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

theyonatan avatar Sep 27 '21 14:09 theyonatan

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.

dudeofawesome avatar Sep 28 '21 00:09 dudeofawesome

Should be resolved in the latest commit

Malexion avatar Sep 28 '21 02:09 Malexion