This is a very small script to send an alert in Slack when the ParisTestConf email account receive and email. The team doesn't check the email account enough so that was my solution.
There isn't any simple solution to do that without paying a third-party so... here we are.
Run npm install
!
Copy config.example.js
to config.js
and replace all values.
- Create a Slack app
- Get the OAuth token in your app's management page (OAuth & Permissions section)
- Add the OAuth token in the
config.js
file, for theslack_token
entry
Add your Slack application to your server and the channel you want alerts to be sent to.
Then launch the app regularly (on a cron for example) with node ./index.js
.