GithubHelp home page GithubHelp logo

mattermost-spybot's Introduction

mattermost-spy-bot

FOSSA Status

SpyBot notifies you when a specific user comes online after you have told the bot to spy on the user

Set environment variables

  1. Create .env file using the template of file 'sample-env'
  2. Fill all the environment variables mentioned in the file

Create Slash Command

Create a slash command and configure as follows:

Command Trigger Word: spy

Request URL: /spies

Request Method: POST

Response User: spt-bot (change as you wish)

Fill other details as you prefer!

Create incoming webhook using dedicated mattermost account for spy-bot

Create an incoming webhook and configure as follows:

Channel: any channel

Add the incoming webhook id in environment file(WEBHOOK_ID). SpyBot will use this incoming webhook to notify the user once the person comes online

Usage

  1. Mention the mattermost server host(MATTERMOST_HOST) and port(MATTERMOST_PORT) in the environment file
  2. Create a mattermost user for spy-bot and add that account credentials(SPY_ID, SPY_PASSWORD) in the environment file
  3. Create 1 slash command and 1 incoming webhook as mentioned above. And assign incoming webhook id to WEBHOOK_ID env variable
  4. Mention the polling interval time(POLL_INTERVAL_SECS). If it is not set, default polling interval is 1 minute. This indicates the frequency to check the user status.
  5. Install npm dependencies: npm install
  6. Start the app: npm start
  7. To spy on your team mate: Type "/spy @<name>" or "/spy <name>" in the any channel. Once the victim comes online, Spybot will post the response in the direct channel to you

License

FOSSA Status

mattermost-spybot's People

Contributors

prabhu43 avatar fossabot avatar prabhutw avatar

Stargazers

Imran Hasan avatar Robert Varner avatar Kishan B avatar Sowmya Viswanathan avatar Iván Martínez Agüero avatar Edgard Pineda avatar

Watchers

James Cloos avatar  avatar  avatar

mattermost-spybot's Issues

Use slash command instead of outgoing webhook

The benefits of slash-commands:

  • Slash commands work in all channels.
  • They can have additional descriptions which makes it easier to use
  • they are listed so someone could look up the possible commands and dont have to remember it.
  • They can post an ephemeral message back to tell the user, that the action has successfully been placed.

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.