Giter Club home page Giter Club logo

inspiromeslack's Introduction

InspiroBot

InspiroBotSlack

Slack integration with InspiroBot.me

Key Features:

  • Post a random image from Inspiro Bot to any given Slack channel in your workspace.
  • Before posting to a slack channel, only the person who invoked it can:
    • Shuffle for another image, if the current image does not suit your taste.
    • Cancel sending the image to the channel.
    • Send the current image to the channel for everyone to see.

Local development

Use ngrok (https://api.slack.com/tutorials/tunneling-with-ngrok) to test commands locally.

Slash Commands

This works in all channels, within Slack Integration Choose Slash Command and setup something similar to this: Create an App and enable slash command

Create a new slash command: Create a new Slash command

To configure request URL (indicated as 1, in image below), you have the following options:

  • Use my Heroku deployment with the following Request URL: https://inspirome-slack.herokuapp.com/slash
  • Clone the repo yourself and upload the Node.js app to your own private webserver and configure like it is below: Image of Slash Command Settings

Once added, when you call /inspire, you will be presented with following options visible only to yourself:

  • Send, send the image shown to channel, so that its visible for everyone.
  • Reshuffle, change the image from Inspirobot to something else, visible only to you.
  • Cancel, cancel sending an image. The message will be deleted without sending anything. Once added you have the ability to shuffle

Once you hit Send, the posted message looks this way:

Posted image

Image for Inspirobot Icon: http://inspirobot.me/website/images/inspirobot-dark-green.png

Contributing

PR's are always welcome! :)

inspiromeslack's People

Contributors

apalanki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

inspiromeslack's Issues

Buttons don't work

Hi there. I wanted to try this out because it's such an awesome idea. Thanks for building it.

I followed your guide using your Heroku URL. I got it installed in our Slack and it works as far as loading a picture, but none of the buttons do anything. All I can do is leave it there, or delete the message.
image

Thanks

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.