GithubHelp home page GithubHelp logo

benoitlavorata / node-red-contrib-mattermost-ws Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 18 KB

Interface with mattermost, based on initial node-red-contrib-mattermost, with small modifications to allow direct access to all methods exposed in mattermost-client lib. This module requires to create a bot account on mattermost, and uses websocket for connection.

JavaScript 66.09% HTML 33.13% Shell 0.77%
node-red mattermost websocket

node-red-contrib-mattermost-ws's Introduction

node-red-contrib-mm

Interface with mattermost, based on initial node-red-contrib-mattermost, with small modifications to allow direct access to all methods exposed in mattermost-client lib. This module requires to create a bot account on mattermost, and uses websocket for connection.

Creates 4 nodes:

  • mm-config: configuration of the bot Need to provide the url, login, password, ports...

  • mm-receive: triggered whenever a message is received by the bot

{
    payload: {
        event: "posted",
        data: object,
        channel_display_name: "",
        channel_name: "ooru7g666f8wmm99dbe9osmeno__qz93pd58ifnpzj84f3pxg859eh",
        channel_type: "D",
        mentions: "["qz93pd58ifnpzj84f3pxg859eh"]",
        post: object,
        sender_name: "benoit",
        team_id: "",
        broadcast: object,
        seq: 6,
    },
    _msgid: "8919fda8.df6f1"
}
  • mm-send: send a message to users (dm, use "channel=username") or to groups Example
{
    "channel": "user",
    "payload":{
        message: `Test`,
        //root_id: rootMsgId,
        //parent_id: originalMsgId,
        //original_id: ""
    }
}
  • mm-api: use mattermost API to perform more operations Example:
{
    method: "getPostById",
    args: "SomeID",
};

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.