Skip to content

BlankFoundation/blankbot

Repository files navigation

Install

  • Clone this repository
  • npm install

Running locally

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

Prerequisites

Go to discord settings and turn developer mode on. Image 2021-12-12 at 9 36 13 PM

Create Discord Development Server

Use the Blank Foundation Server Template to create a development blank foundation discord server. Create Bot Server

Create Discord Development Bot

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 add clientId: <0AuthClientId> which is located in the application settings. Image 2021-12-12 at 9 44 51 PM
  • In config.js add "discordToken": <discordToken> located in the application settings. Image 2021-12-12 at 9 48 25 PM

Enable Privileged Intent

For the bot to access members on a server, discord requires a "Privileged Intent" GUILD_MEMBERSHIP You need enable it in the bot settings

Enable Privileged Intent

Add Dev Bot to Dev Server

Run this script and open the generated link in browser to add your bot

node addDevBot.js

Generate Config File

Now that your dev bot is connected with your dev server, you can generate part of the config.js with this

node generateConfig.js

Running tests

npm run test

About

Bot on Discord for whitelisting and more

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •