🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@everymundo/message-to-slack

Package Overview
Dependencies
Maintainers
26
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@everymundo/message-to-slack

Easily send message to slack channels

latest
Source
npmnpm
Version
0.1.3
Version published
Maintainers
26
Created
Source

@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');

Keywords

slack

FAQs

Package last updated on 28 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts