# slacquer

> Send and receieve messages from Slack in Node.js.

Latest version **0.1.3** (published 2016-06-17) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install slacquer
pnpm add slacquer
yarn add slacquer
bun add slacquer
```

## 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.1.3 |
| Published | 2016-06-17 |
| First published | 2016-06-02 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 0.10.33 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Rob Porter |
| Maintainers | rgeraldporter |
| Keywords | slack, bot, slacker, slacquer, webhook, chat, chat bot |

## Links

- npm: https://www.npmjs.com/package/slacquer
- Repository: https://github.com/rgeraldporter/slacquer
- Homepage: https://github.com/rgeraldporter/slacquer#readme
- Issues: https://github.com/rgeraldporter/slacquer/issues
- npm.io page: https://npm.io/package/slacquer

## Dependencies (2)

- [bhttp](https://npm.io/package/bhttp.md) ^1.2.1
- [bluebird](https://npm.io/package/bluebird.md) ^3.4.0

## Recent versions

- 0.1.3 (latest) — 2016-06-17
- 0.1.2 — 2016-06-17
- 0.1.1 — 2016-06-10
- 0.1.0 — 2016-06-02

## README

# Slacquer

Send and receieve messages from Slack in Node.js!

# Usage

## Import

You can import either via CommonJS or ES6, depending on what you're using.

```javascript
var Slacquer = require( 'slacquer' );
```

or 

```javascript
import Slacquer from 'slacquer';
```

## Send

```javascript
    let slack = new Slacquer( 'https://mywebhook.url/192873982173' );

    // Slacquer.send is a Promise
    slack.send({

            text:       'This is a test.',
            channel:    '#testing-bots',
            username:   'my-cool-bot'
        })
        .then( response => {

            // do something with <response.body>
        })
    ;
```

## Respond

```javascript
    let slack = new Slacquer( 'https://mywebhook.url/192873982173' );

    slack.respond( req.body )
        .then( response => {

            console.log( response.userName + ' said: "' + response.text + '"' );
        })
    ;
```

# Build

You can build easily with `gulp`, which will test then build. To just test, run `gulp test`. More tests are coming...

# Requirements

You'll need a Slack account and a webhook URL set up.

# Contribute

Please fork the project, then use a pull request to make improvements and fixes.

# Authors and Acknowledgements

Written by [Robert Gerald Porter](https://github.com/rgeraldporter).

Based upon [node-slack](https://github.com/xoxco/node-slack) by [Ben Brown](https://github.com/benbrown).

# License

BSD

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