GithubHelp home page GithubHelp logo

lita-slack's Introduction

lita-slack

lita-slack is an adapter for Lita that allows you to use the robot with Slack. As lita-slack is one way, robot messages to Slack, it depends on lita-slack-handler gem to receive messages from Slack.

Installation

Add lita-slack and lita-slack-handler to your Lita instance's Gemfile:

gem "lita-slack"
gem "lita-slack-handler"

Configuration

First, you need to make sure your Slack team has Incoming WebHooks integration setup. For configuration regarding lita-slack-handler, see its README.

Then, define the following attributes:

Required attributes

  • incoming_token (String) – Slack integration token.
  • team_domain (String) – Slack team domain; subdomain of slack.com.

Optional attributes

  • incoming_url (String) – Default: https://<team_domain>.slack.com/services/hooks/incoming-webhook
  • username (String) – Display name of the robot; default: whatever is set in Slack integration
  • add_mention (Bool) – Always prefix message with mention of the user which it's directed to; this triggers a notification.

Example lita_config.rb

Lita.configure do |config|
  config.robot.name = "Lita"
  config.robot.mention_name = "@lita"
  # Select the Slack adapter
  config.robot.adapter = :slack
  # lita-slack adapter config
  config.adapter.incoming_token = "aN1NvAlIdDuMmYt0k3n"
  config.adapter.team_domain = "example"
  config.adapter.username = "lita"
  # Some more handlers and other config
  # .....
end

License

MIT

lita-slack's People

Contributors

hubb avatar jimmycuadra avatar kenjij avatar kenpropel avatar

Watchers

 avatar  avatar

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.