Configuring the bot - Glowstudent777/BasicDiscordBot GitHub Wiki

Configuring

The Token (Self Host)

If you do not have the .env file

Create a file called ".env" and type

CLIENT_TOKEN=

Paste your bot token after CLIENT_TOKEN=

If you do have the .env file

Open the .env file and paste your bot token after CLIENT_TOKEN=

The Token (Repl.it)

Secrets

On the left side of the repl should be a lock. If you select the lock you will see a Secrets page. Set key to CLIENT_TOKEN like below

key=CLIENT_TOKEN
value=

Paste your bot token in the value section.

Settings

Open config.json in a text editor

Prefix

The default prefix is '!' To change the prefix replace '!' with whatever prefix you want

Whitelist

To allow someone to use whitelisted commands Copy the users discord id and paste it in the whitelisted section

To add multiple whitelisted IDs separate them with commas

One User ID

"whitelist": ["OneID"]

Two User IDs

"whitelist": ["OneID", "AnotherID"]

And so on for as many users as you need

Unverified Bot Filter

Open config.json

Find this line in config.json:

	"antiBotActive": false,

To enable the filter replace false with true

	"antiBotActive": true,

To allow someone to add unverified bots add their user id to the list

	"allowedToAddBots": ["123456789012345678"],

To add more than one person just add a comma between the user ids

	"allowedToAddBots": ["123456789012345678", "123456789012345678"],

To edit the message sent when a message containing a blacklisted word is sent edit

	"blacklistMessage": "You cannot say that here!"

To enable logs of who added or tried to add a bot to the server:

	"logBotAdditionsToFile": true

To disable logs:

	"logBotAdditionsToFile": true

Activity

Open config.json

To change PLAYING, COMPETING, WATCHING, LISTENING, STREAMING

"ActivityType": "WATCHING",

Change WATCHING to one of the above options

To change what the bot is PLAYING, COMPETING, WATCHING, LISTENING, STREAMING

"Activity": "Glowstudent",

Change 'Glowstudent' to what you want your bot to be doing