Giter Site home page Giter Site logo

cnguy / watcher Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 11 KB

haskell program that runs a Discord bot to ping server(s) to check for healthiness and sends discord & twilio message(s) on server(s) crashes

License: MIT License

Haskell 100.00%
haskell discord twilio

watcher's Introduction

watcher

A Haskell program that watches a list of URLs and notifies you on Discord & Twilio when something goes wrong. To be specific, when some server dies. I currently use this to watch multiple microservices to make sure nothing has crashed.

Basic Usage

Requirements;

  1. Twilio account id, auth token, to number, from number
  2. Discord channel ID
  3. A set of urls such as https://yourserver.com/api/v1/ok,https://yourotherserver.com/api/v1/ok
cp .env-example .env # and then modify the values
cabal install && cabal run

watcher's People

Contributors

cnguy avatar

Stargazers

Thomas Alcala Schneider avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.