Skip to content
This repository has been archived by the owner on Aug 7, 2021. It is now read-only.
/ errol Public archive
generated from pabio/template

🦉 Errol delivers your notifications wherever you want them

License

Notifications You must be signed in to change notification settings

AnandChowdhary/errol

Repository files navigation

🦉 Errol

Errol delivers your notifications wherever you want them. It's a Node.js project that integrates with your favorite services, like Slack, Telegram, and, email.

Status
Build Node CI Dependencies GitHub release (latest by date) Snyk Vulnerabilities for GitHub Repo
Health License CI CLA Assistant Pull Request Labeler
PRs PR Generator CI Merge PRs

⭐️ Usage

To send a notification to all services:

import { Errol, ErrolService } from "errol"; // TypeScript/ESM
// const { Errol, ErrolService } = require("errol");

const notifications = new Errol([
  {
    service: ErrolService.SLACK,
    token: "your-slack-token",
    channelId: "your-slack-channel",
  },
  {
    service: ErrolService.TELEGRAM,
    accessToken: "your-telegram-token",
    chatId: "your-telegram-chat",
  },
  {
    service: ErrolService.EMAIL,
    from: "[email protected]",
    to: "[email protected]",
    host: "example.com",
    auth: {
      user: "[email protected]",
      pass: "your-password",
    },
  },
]);

// Send a notification
notifications.send("This is my notification!");

Currently supported services:

  • Slack
  • Telegram
  • Email
  • Webhook
  • IFTTT
  • Twilio SMS
  • Twitter DM/tweet

📄 License

MIT © Koj

Koj

An open source project by Koj.
Furnish your home in style, for as low as CHF175/month →