Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

EveryMundo/message-to-slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Easily sending message to slack channels

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •