cordlr-loader

0.1.7 • Public • Published

cordlr-loader NPM version Build Status

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 with
  • email (String): An alternative to token when paired with password.
  • password (String): Password to go along with email.
  • plugins (Array): Plugins to load, an array of strings loaded as if require'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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.7
    2
    • latest

Version History

Package Sidebar

Install

npm i cordlr-loader

Weekly Downloads

11

Version

0.1.7

License

MIT

Last publish

Collaborators

  • d2k
  • programmatical