botToken |
string
|
|
|
Your bot's token. |
botAdminIds |
Array.<string>
|
<optional>
|
[]
|
A list of IDs of users who are allowed to run bot admin commands. |
prefixes |
Array.<string>
|
<optional>
|
['']
|
The bot's default command prefixes. |
logger |
external:"bunyan.Logger"
|
<optional>
|
new Monochrome.ConsoleLogger()
|
A bunyan logger, or something with the same interface. Monochrome will use addSerializers to add a 'user', 'guild', and 'channel' serializer to your logger. |
storage |
StoragePlugin
|
<optional>
|
new Monochrome.Plugins.FPersist(path.join(process.cwd(), 'storage'))
|
A storage plugin. |
commandsDirectoryPath |
string
|
<optional>
|
|
The path of the directory (must exist) where your command modules exist. If this is omitted, no commands with be loaded. |
messageProcessorsDirectoryPath |
string
|
<optional>
|
|
The path of the directory (must exist) where your message processor modules exist. If this is omitted, no message processors will be loaded. |
logDirectoryPath |
string
|
<optional>
|
|
The path of the directory where logs should be stored (does not need to exist, but parent directories must exist). If this is omitted, logs will not be saved to disk. |
settingsFilePath |
string
|
<optional>
|
|
The path of the Javascript file in which an array of your settings definitions exists. If this is omitted, no settings will be loaded. |
genericErrorMessage |
string
|
<optional>
|
|
If your code throws an error that is caught by monochrome, this message will be sent to the channel where the command was used. The exception is message processors. Errors caught from message processors will not be broadcast to the channel. This avoids the possibility of your message processor throwing on any input and spamming errors to the channel. |
missingPermissionsErrorMessage |
string
|
<optional>
|
|
If the bot fails to send a message due to missing permissions, the bot will attempt to send this message to the channel (that may fail too, if the bot has no permission to send even plain text messages in the channel). If this is omitted, no message is sent to the channel. |
discordInternalErrorMessage |
string
|
<optional>
|
|
If the error handler catches a Discord internal error, the user will be shown this message (if Discord succeeds in sending it...). If this is omitted, no message is sent. |
statusRotation |
Array.<string>
|
<optional>
|
[]
|
An array of statuses that the bot should rotate through. The statusRotationIntervalInSeconds property is required to be set if this property is set. |
statusRotationIntervalInSeconds |
number
|
<optional>
|
|
The bot will change their status on this interval (if the statusRotation has more than one status). |
topGgAPIKey |
string
|
<optional>
|
|
If you have an API key from https://top.gg/ you can provide it here and your server count will be sent regularly. |
discordDotBotsDotGgAPIKey |
string
|
<optional>
|
|
If you have an API key from https://discord.bots.gg/ you can provide it here and your server count will be sent regularly. |
botsOnDiscordDotXyzAPIKey |
string
|
<optional>
|
|
If you have an API key from https://bots.ondiscord.xyz you can provide it here and your server count will be sent regularly. |
discordBotListDotComAPIKey |
string
|
<optional>
|
|
If you have an API key from https://discordbotlist.com you can provide it here and your server count will be sent regularly. |
erisOptions |
Object
|
<optional>
|
|
The options to pass directly to the Eris client. You can do things like set your shard count here. See the 'options' constructor parameter here: https://abal.moe/Eris/docs/Client |