1.5.8 • Published 4 years ago

slack-ext-updatable-message v1.5.8

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

Slack EXT: Updatable Message

Create awesome interactions with by updating your slack messages.

Installation

Install it using NPM:

npm install --save slack-ext-updatable-message

Usage

Usage is really easy. You can send anything you can send with the Slack API, we'll do the administration:

const { UpdatableMessage } = require("slack-ext-updatable-message");

// provide us a token or an instance of the Slack Api and the channelId
const sender = new UpdatableMessage("token", channelId);

// send asynchronously
sender.send('Let me check...');

// perform long operations a send feeback
for(var i = 1; i < 10; i++){
    // long operation
    sender.send(`Procssing, we're on ${i}%`);
}

await sender.send('Finished!');

Notes

There are some choices we've made:

  • Awaiting is optional, but if you want to make sure something really happed, await it.
  • If multiple updates come in when sending (without await), the last available message will be send upon completion.
1.5.8

4 years ago

1.5.6

4 years ago

1.5.4

5 years ago

1.5.3

5 years ago

1.5.2

5 years ago

1.5.1

5 years ago

1.4.17

5 years ago

1.4.16

5 years ago

1.4.15

5 years ago