Skip to content

jimkang/slack-gis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slack-gis

Searches Google Images for Slack.

gis screenshot



Running it yourself on Linux or Mac (probably the same for Windows, but I haven't tried it)

  • Install Node.

  • Run these commands to clone the repo and install its dependencies.

      git clone git@github.com:jimkang/slack-gis.git
      cd slack-gis
      npm install
    
  • Over in Slack, add an Outgoing Webhook that points to your server at the port specified by webhookPort in config.js.

Outgoing Webhook config

  • Create a config.js file in the slack-gis with these contents:

    module.exports = { webhookPort: 7778, validWebhookTokens: [ 'your Slack webhook token' ] };

  • Copy the generated token by the webhook page into the validWebhookTokens array in config.js.

  • Start the server by running make start, and it will be ready to serve Google Image search results to Slack!



Having me running it for you

If you want, I can try running GIS for your Slack. Just set up the webhook as described above and send me the token. I can't make guarantees about performance, however. (I think it should be fine, but my GIS webhook lives on a tiny VPS instance with 22 other bots and API servers.)



Usage

Once set up, you can type <your trigger word> cats in a channel, and an image search result will show up!

gis screenshot of Smidgeo



License

The MIT License (MIT)

Copyright (c) 2015 Jim Kang

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Searches Google Images for Slack.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published