Node.JS script allowing to send Epitech intranet's messages to Slack.
- Retrieves messages from Epitech's intranet
- Send the title, content and date of any new messages to a configured Slack hook
- Replace potential HTML link by a Slack compliant version
- Simply clone this depot anywhere on your server.
- Copy config.json.example file into a
config.jsonfile. - Add your intranet login/password to the
config.jsonfile. - Install a incoming-webhooks on your Slack.
- Add your link of the Slack incoming-webhooks in the
config.jsonfile. - Optional (but recommended) : Install a task scheduler (like
CRON) to run the script regularly.
login: Your intranet login.password: Your intranet password.hostname: Hostname of the intranet API to retrieve all messages (You shouldn't have to change this).path: Path of the intranet API to retrieve all messages (You shouldn't have to change this).slackHookUrl: Link to your Slack incoming-webhooks.slackHookName: Name to display when you will get notified on Slack.