syslmka.blogg.se

Add gif slack
Add gif slack









add gif slack

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).

add gif slack

SLACK_BOT_OAUTH_TOKEN: Your app's oAuth token (available on the Install App page).

add gif slack

  • SLACK_SIGNING_SECRET: Your app's Signing Secret (available on the Basic Information page).
  • 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.
  • 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