# cordlr-plugin

> Cordlr plugin core to extend new plugins from.

Latest version **0.0.6** (published 2017-06-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install cordlr-plugin
pnpm add cordlr-plugin
yarn add cordlr-plugin
bun add cordlr-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2017-06-27 |
| First published | 2017-03-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Devcord |
| Maintainers | d2k |
| Keywords | cordlr, plugin, core |

## Links

- npm: https://www.npmjs.com/package/cordlr-plugin
- Repository: https://github.com/Devcord/cordlr-plugin
- Homepage: https://github.com/Devcord/cordlr-plugin#readme
- Issues: https://github.com/Devcord/cordlr-plugin/issues
- npm.io page: https://npm.io/package/cordlr-plugin

## Dependencies (2)

- [discord.js](https://npm.io/package/discord.js.md) ^11.0.0
- [hex-to-dec](https://npm.io/package/hex-to-dec.md) ^1.0.1

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 0.0.6 (latest) — 2017-06-27
- 0.0.5 — 2017-03-11
- 0.0.3 — 2017-03-11
- 0.0.2 — 2017-03-11
- 0.0.1 — 2017-03-11

## README

# Cordlr Plugin

## Installation

```js
npm i cordlr-plugin --save
```

## Usage

Reply to a message
```js
const CordlrPlugin = require('cordlr-plugin')

class MyPlugin extends CordlrPlugin {
  constructor (bot, config) {
    super(bot, config)

    // Bot meta data
  }

  myFunction (message, args, flags) {
    this.sendReply(message, 'My reply')
  }
}
```

Reply to a message via private message
```js
const CordlrPlugin = require('cordlr-plugin')

class MyPlugin extends CordlrPlugin {
  constructor (bot, config) {
    super(bot, config)

    // Bot meta data
  }

  sendMeAPrivateMessage (message, args, flags) {
    this.sendPrivateReply(message, 'My private reply')
  }
}
```

More examples in the [documentation](docs/)

---
_Source: https://npm.io/package/cordlr-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
