The good, the bad, and the ugly.
From any Slack channel, just type /<command> [search terms]
.
For example:
/imdb casablanca
/excuse
/producthunt_posts 2
- Movie details lookup on IMDb (URL: http://cowboy-slack.herokuapp.com/movie.slack)
- Get fine excuses to convince your boss (URL: http://cowboy-slack.herokuapp.com/excuse.slack)
- Get all featured/trending products from Product Hunt (URL: http://cowboy-slack.herokuapp.com/producthunt/posts.slack)
- HN/best
- DDG search
- Weather forecast
- Simple calculations
- Define word
- Wiki lookup
- Go to your channel
- Click on Integrations.
- Scroll all the way down to DIY Integrations & Customizations section.
- 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]
- Description:
- Descriptive Label:
Movie Lookup
- Do same for other available commands.
- 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.
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.
- Please use the issue tracker to report any bugs or file feature requests.
- This project is inspired from @karan's overflow, but is way more powerful!
- Movie details are retrieved from http://www.omdbapi.com/. Thanks to the creator of this site.
- Source of funny programmer's excuses: http://www.programmerexcuses.com/
Copyright (c) 2015, Vishal Telangre. All Rights Reserved.
This project is licenced under the MIT License.