-
-
Notifications
You must be signed in to change notification settings - Fork 0
Bot config guide
Karl Essinger edited this page Sep 16, 2018
·
1 revision
First of all you need to create a bot and add it to your server from here: https://discordapp.com/developers/
This is very simple, and you can follow this guide.
If you have downloaded it directly from the repo rather than from the releases tab you have to rename the config from default_config.json
to config.json
. This is to make sure I or anyone else who adds to this bot don't accidentially post their bot token or other sensitive information in the public repository.
The different options are described in the config:
{
"_description": "The bot token from https://discordapp.com/developers/",
"token": "add-your-token-here",
"_description": "Prefix for discord commands.",
"prefix": "+",
"_description": "Port to listen on.",
"listeningPort": 8888,
"_description": "Channel to post generic plugin messages in. Also the channel to listen for Discord commands in.",
"defaultChannel": "add-channel-id-here",
"_description": "Log more messages to the console, useful for debugging",
"verbose": false,
"_description": "Message cooldown, number of milliseconds to wait between sending messages. Use this if your server sends too many messages for the bot to keep up. (Bot will get delayed if it hits more than 5 messages per 5 seconds)",
"cooldown": 1000,
"_description": "Only members with the appropriate permissions can use commands, for instance needing the discord ban permission for the ban command. Otherwise everyone with write access to the channel can use all commands.",
"requirepermission": true
}
Get the channel ID by turning on developer mode in Discord and right click on the channel. You must add the bot token and channel id for the bot to work.