A matrix bot that listens to custom webhooks for UptimeRobot.
This application is in no way affiliated with Uptime Robot.
- Configure bot offline in settings
- Make sure port in config is forwarded
- Invite bot to rooms designated in settings
- Add webhook endpoint to Uptime Robot (
[BOT_DEPLOYMENT_URL]/webhook/[ID]
) - If using port, add
?port=[PORT]
to the end of the URL to overcome shortcoming in Uptime Robot webhook data properties available (-1 for verbose ignore) - Get responses to webhooks when fired
Note: You'll need to have access to an account that the bot can use to get the access token.
- Clone this repository
npm install
npm run build
- Copy
config/default.yaml
toconfig/production.yaml
- Run the bot with
NODE_ENV=production node lib/index.js
A Dockerfile and docker-compose are provided.
Build the docker image:
`docker build -t matrix-bot-uptimerobot .`
Build the docker image and run docker-compose to deploy to your server:
`docker build -t matrix-bot-uptimerobot . && docker-compose run matrix-bot-uptimerobot`