5 Config
ljoonal edited this page 2019-02-07 00:40:54 +02:00

Configuration

There are 2 types of configuration files. There is the global configuration file, and then there are settings files. Settings files are for individual guild settings, and people with permissions in those guild can change those settings.

Global config.json

These are for the config.json file.

Name Recommended Type Description
debug false bool Determines if logs are spit out and other developemental features are enabled or not.
token - str The token for your bot that you get from discord
youtubeToken - str The token from google.
clientId - int The clientid that you get from discord, is only needed if you want the invite link for your bot to be generated automatically.
stopListener.localPort 9576 int Port that's used for shutting down the server. Use npm stop to stop the server.
stopListener.internalStopKey Random string starting with / str Randomly generated string, used foe shutting down the server. You can manually set this to "/stop" if you wish to use that to stop your server. should start with a slash.
groupLimit 5 int How many groups you want each guild to be able to have. It's just a limit to make sure that not a ton of ram is used.
idsPerGroupLimit 5 int How many role's can a group be linked to? It's just a limit to make sure that not a ton of ram is used.

Settings

These are for default_settings.json and all of the settings.json files.

Name Recommended Type Description
prefix . str Determines the prefix before all of the commands
messageTimer 5000 int How long will the commands and the responses be visible for?
commandsChannel commands str/false If false, bot can be used in all channels. If a string, it can be only used in a channel with that name.
keepCommandsChannelClean false bool If the bot should clear all messages from commands channel. This uses messageTimer, so make sure that that is also set.
music.volume 100 int The default volume for the bot.