missple.blogg.se

Add gif slack
Add gif slack








add gif slack

Step 2 - Create public URL Next you have to mark the uploaded file as public. Dont include the channels argument or the image will be posted visible into those channel.

  • heroku config:set GIFS_SERVER=your-server.github. Step 1 - Upload image to Slack API method: files.upload with no special arguments, but make sure to get the file ID from the response.
  • heroku config:set SLACK_BOT_OAUTH_TOKEN=.
  • heroku config:set SLACK_SIGNING_SECRET=.
  • ADMIN_SECRET: A secret used to access the debug page.
  • DATABASE_URL: A fully qualified Postgres Database URL (automatically provided on Heroku with the Postgres addon).
  • GIFS_SERVER: The URL to your gifs server (you can use GitHub Pages).
  • SLACK_BOT_OAUTH_TOKEN: Your app's oAuth token (available on the Install App page).
  • SLACK_SIGNING_SECRET: Your app's Signing Secret (available on the Basic Information page).
  • add gif slack

    Set the following environment variables to. Navigate to the OAuth & Permissions page and select the following bot token scopes:Ĭlick 'Save Changes' and install the app (You should get an OAuth access token after the installation) Set Your Environment Variables Set the Request URL to your server URL + /request.Go back to the app settings and click on Interactive Components.

    add gif slack

    Short description: Search for a sad gif.Request URL: Your server URL + /command?category=sad.If you're using Heroku, your URL will be something like: You can optionally, add extra Slack command(s) that only search within certain folders (matching against all folders in the gifs path) by adding a query string in the format ?category=folderName to the end of the Request URL, for example: Request URL: Your server URL + /command.Click the 'Create New Command' button and fill in the following:.Go back to the app settings and click on Slash Commands.










    Add gif slack