Skip to content
/ msngr Public

a tiny utility to post to webhooks without worrying about platforms.

License

Notifications You must be signed in to change notification settings

ayshptk/msngr

Repository files navigation

@ayshptk/msngr

a tiny utility to post to user-provided webhooks without worrying about platforms built for @executehq

platforms supported:

  • slack
  • discord
  • telegram

won't be adding new platforms myself because of current commitments but feel free to create PR with a working test to get it merged :)

1. install:

npm install @ayshptk/msngr

or

yarn install @ayshptk/msngr

2. use

// import
import { send } from "@ayshptk/msngr";

// declaring webhook
const webhook = "https://discord.com/api/webhooks/987654321/abcdefghijklmnopqrstuvwxyz";

// send
await send(webhook, "Hello World!");

contributing:

feel free to open PRs for any new feature/bug fixes

some things on the top of my head:

  • integrate testing into workflows
  • support for rich embeds (maybe?)
  • support for attachments (maybe?)