Skip to content

Provide chuck norris facts on slack based on chucknorrisfacts api

Notifications You must be signed in to change notification settings

NitnekB/chuck-norris-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chuck Norris API

Welcome to this wonderful project!

Given a FLIC connected button, provides awesome random facts from Chuck Norris legend. This project is based on chucknorrisfacts API.

This project aims to help members of a team to relax during hard days.

Test

Feel free to run tests with this command below

npm test

Setup & Deploy!

This project has been deployed with Heroku

There are some things to consider

Generate Slack token

Rendez-vous on your slack configuration to generate a token

Create environment variables

This project needs 3 environment variables in order to work:

  • FLIC_AUTHENTICATION this token is your own, you can generate it or whatever, but it must be fill as CUSTOM HEADER in order to work. The expected header is: x-live-button-token
  • SLACK_TOKEN must be fill with previous generated Slack token
  • SLACK_CHANNEL_ID targeted Slack channel, can be found in the URL from online Slack mode.

Configure the call

There's only one endpoint on this project: GET <URI>/chuck-norris. Don't forget to add the CUSTOM HEADER and enjoy!

And also don't forget:

Chuck Norris voit le temps passer.

About

Provide chuck norris facts on slack based on chucknorrisfacts api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published