================================
First, run in a command prompt, and choose the directory to be this folder, then run npm update
to download all the required dependencies. Make sure to have discord.js installed.
You will need a ConfigFile.json in this folder (mainFolder/src/Data), that need to fill this requirements:
{
"token": "YOUR BOT TOKEN HERE",
"owners": [
"YOUR ID HERE"
],
"defaultPerms": [
"PermissionFlagsBits FLAGS"
],
"defaultPermsBot": [
"PermissionFlagsBits FLAGS"
],
"debugChannel": [
"ID OF A CHANNEL HERE"
]
}
- token: the token of your bot. Keep this private!
- owners: your id. You can add more owners, but they will access owner only commands, that can be sensitiv.
- defaultPerms: a list of PermissionFlagsBits that match the minimum permissions required by a user to use the bot.
- defaultPermsBot: a list of PermissionFlagsBits that match the minimum amount of permissions needed for the bot to properly run.
- debugChannel: the id of a channel where errors will be sent. If none is provided, it's fine. Errors can also be found in the console.