1.0.1 • Published 3 years ago

libslackjs v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

libslackjs

A custom slack library for Node.js

Installation

Use the package manager npm to install libslackjs.

npm install libslackjs

Usage

const slack = require('libslackjs');

let home = new Slack.UI.Surface.Home();

home.addBlock(
   new Slack.UI.Blocks.Section()
      .setText("Hello, world!")
);

new Slack.API.views.publish(access_token, user_id, home, (error, response, body) => {
   if (error)
      return console.log(error);
});

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

1.0.1

3 years ago

1.0.0

3 years ago