1.0.5 • Published 7 years ago
loungebuddy-slack v1.0.5
setToFixed
Small NPM module for interfacting with Slack. Preserves the interface used from when this was Parse utility class
Installation & Use
npm install loungebuddy-slack
var Slack = require('loungebuddy-slack);
var slack = new Slack({
channel: "#general",
token: "aToken",
})
Parameters
Parameters can be passed via either ENV variables (in the process env or a .env file) OR via a dictionary argument to constructor
Required Parameters:
- Slack Token: passed either in constructor options with the
token
property or in ENV asSLACK_API_TOKEN
. Slack Channel: passed in constructor options with the
channel
property.
Optional Parameters:
- Slack Icon: passed either in constructor options with the
icon_url
property or in ENV asSLACK_ICON
. - Slack Username: passed either in constructor options with the
username
property in ENV asSLACK_USERNAME
.