Namespace Pollution Mechanism

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

    Install

    npm i @everymundo/message-to-slack

    DownloadsWeekly Downloads

    1

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    6.86 kB

    Total Files

    6

    Last publish

    Collaborators

    • mtmorell88
    • a11y_automation2
    • ramses83
    • raydel
    • alex-orga
    • vladimirpetrov
    • estebanpablo89
    • yartiles
    • jonmorazav
    • emdavidmoreno
    • everymundo-admin
    • ballester
    • danielsan
    • halain
    • avivero93
    • anahiem
    • herlin
    • karinfdez
    • ernestocarrasco
    • erlin
    • front10devs
    • hdelcastillo
    • dcuevacem
    • rodneyem
    • ortega.dc98
    • pedroleon917
    • kaylingw
    • joeaspiazuem
    • lazjramos
    • daniuska-em
    • cstansfld