@everymundo/message-to-slack

0.1.3 • Public • Published

@everymundo/message-to-slack

Easily sending message to slack channels

Installation

$ npm install 

Usage

const SlackClient = require('@everymundo/message-to-slack');
const options = { icon_emoji: ':robot_face:' };

// your token will look like this:
// xoxb-999999999999-9a9a9a9a9a9a9a9a9a9a9a9a
// This is the BOT Token, not the other one
const { SLACK_TOKEN } = process.env;
const SLACK_CHANNEL = process.env.SLACK_CHANNEL || 'google-ita-worker-app';
const SLACK_USER    = process.env.SLACK_USER    || 'google-ita-worker-bot';

const client = new SlackClient(SLACK_TOKEN, SLACK_USER, SLACK_CHANNEL, options);

client.sendMessage('@everymundo/message-to-slack works like a charm');

Package Sidebar

Install

npm i @everymundo/message-to-slack

Weekly Downloads

1

Version

0.1.3

License

MIT

Unpacked Size

6.86 kB

Total Files

6

Last publish

Collaborators

  • a11y-dev
  • jsalvadorpp
  • lindolo25
  • double2-us
  • ceciliagalarza
  • carla-villegas
  • eblez
  • mjremedios1985
  • mtmorell88
  • a11y_automation2
  • ramses83
  • raydel
  • alex-orga
  • estebanpablo89
  • yartiles
  • jonmorazav
  • everymundo-admin
  • ballester
  • danielsan
  • halain
  • avivero93
  • anahiem
  • herlin
  • karinfdez
  • erlin
  • front10devs
  • hdelcastillo
  • dcuevacem
  • rodneyem
  • ortega.dc98
  • pedroleon917
  • kaylingw
  • lazjramos
  • daniuska-em