All Projects → vishaltelangre → Cowboy

vishaltelangre / Cowboy

Licence: mit
Power up your slack with cowboy!

Programming Languages

go
31211 projects - #10 most used programming language

Cowboy

The good, the bad, and the ugly.

Watch cowboy in action!

watch cowboy in action!

Usage

From any Slack channel, just type /<command> [search terms].

For example:

/imdb casablanca
/excuse
/producthunt_posts 2

Available commands

More coming soon...

  • HN/best
  • DDG search
  • Weather forecast
  • Simple calculations
  • Define word
  • Wiki lookup

Integrate with your Slack team

  1. Go to your channel
  2. Click on Integrations.
  3. Scroll all the way down to DIY Integrations & Customizations section.
  4. For example, to add above movie lookup command, click on Add next to Slash Commands.
  • Command: /imdb or whatever you like
  • URL: http://cowboy-slack.herokuapp.com/movie.slack
  • Method: POST
  • For the Autocomplete help text, check to show the command in autocomplete list.
    • Description: Show movie details from IMDb
    • Usage hint: [movie]
  • Descriptive Label: Movie Lookup
  1. Do same for other available commands.

Important Note

  • If you are setting up your slack commands by relying on http://cowboy-slack.herokuapp.com server, then FYI, I am using Heroku's free dyno, which goes asleep after 20 minutes of inactivity. So if a command doesn't work for your first time, try it again after 5 seconds, as server would be awaken and wouldn't respond and that initial request times out, but subsequent requests will work quickly without a retry.
  • A free Heroku dyno could stay awake for 18 hours a day -- if this limit gets exceeded, Heroku shuts that dyno for 6 hours to recharge it. In such a case the server won't be able to respond any request for 6 hours.
  • If you want these commands respond all the time consistently, setup cowboy on your own premium server, follow next section on howto.

Wanna hack?

Follow this tutorial to setup this project locally, and optionally deploy it on Heroku. This project uses foreman utility to spin up/off server, Godeps to manage third-party libraries.

Wanna Contribute?

  • Please use the issue tracker to report any bugs or file feature requests.

Thankings

Copyright and License

Copyright (c) 2015, Vishal Telangre. All Rights Reserved.

This project is licenced under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].