cordlr-loader
The default loader for cordlr.
Installation
$ npm install --save cordlr-loader
API
loader(client, [options])
Apply the loader on any discord.js client, with your options.
client
(Client
): A discord client to load your options on.options
(Object
): Options to supply for the loader (See below)
Options
In addition to the standard package.json
properties, you have:
token
(String
): A token to log your bot in withemail
(String
): An alternative totoken
when paired withpassword
.password
(String
): Password to go along withemail
.plugins
(Array
): Plugins to load, an array of strings loaded as ifrequire
'ed
Here is an example configuration
"name": "my-bot" "description": "He does cool things." "token": "..." "plugins": "cordlr-help" "cordlr-svg" "cordlr-color" "dependencies": "cordlr-help": "v1" "cordlr-svg": "v0.1" "cordlr-color": "v0.1"
License
MIT © Jamen Marz