Code Monkey home page Code Monkey logo

slack-autoreply's Introduction

Slack Autoreply

Commitizen friendly

A quick-and-dirty out-of-office Slack autoreply based on NodeJS.

example image

Sends an ephemeral message when someone DMs you. Use chat.postMessage if you want to send an actual message.

You'll need NodeJS (tested on 12.15.0) and the Slack legacy token.

Development

Install dependencies

yarn install

Setup environment variables

Clone the .env.example file to .env

cp .env.example .env

Request your Slack legacy token and replace xoxp-your-token in the .env file with it.

Run the app in development mode

yarn start

Production setup

Install pm2

npm install pm2@latest -g

Start the server by running

pm2 start server.js --name your-app-name

Alternatively, for convenience you can create a ecosystem.config.js config file with the following example and simply run pm2 start

module.exports = {
  apps: [
    {
      name: "your-app-name",
      script: "server.js"
    }
  ]
};

The server.js uses the "Require hook" hack, check it out here.

Enjoy!

slack-autoreply's People

Contributors

dependabot[bot] avatar yongzhenlow avatar

Watchers

 avatar  avatar

Forkers

cgtarmenta

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.