- Clone this repository
- npm install
make sure you have node > v16.13.1 installed locally, if not, checkout nvm
nvm install v16.13.1
nvm use
npm install
cp config.test.js config.js
To develop the blank bot locally, you will need to create a:
- development blank foundation discord server
- development blank foundation bot
Go to discord settings and turn developer mode on.
Use the Blank Foundation Server Template to create a development blank foundation discord server.
You can create your own blank foundation development bot in 3 steps
- Create a New Application on discord developer portal with a name
- Create a bot for the application. Go to the
Bot
section, create a bot. - In
config.js
addclientId: <0AuthClientId>
which is located in the application settings. - In
config.js
add"discordToken": <discordToken>
located in the application settings.
For the bot to access members on a server, discord requires a "Privileged Intent" GUILD_MEMBERSHIP You need enable it in the bot settings
Run this script and open the generated link in browser to add your bot
node addDevBot.js
Now that your dev bot is connected with your dev server, you can generate part of the config.js with this
node generateConfig.js
npm run test