0.1.7 • Published 7 years ago

cordlr-loader v0.1.7

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago