Modules@robinpath/notification

@robinpath/notification

0.1.1Public

Unified notifications: Slack, Discord, Telegram, and MS Teams via webhooks

@robinpath/notification

Unified notifications to Slack, Discord, Telegram, and Microsoft Teams via webhooks

Category Functions Auth License

Why use this module?

The notification module lets you:

  • Send a message to Slack via webhook
  • Send a rich Slack message with blocks (title, fields, images)
  • Send a message to Discord via webhook
  • Send a rich Discord embed message
  • Send a message via Telegram Bot API

All functions are callable directly from RobinPath scripts with a simple, consistent API.

Installation

npm install @robinpath/notification

Quick Start

No credentials needed — start using it right away:

notification.slackRich $url {"title": "Deploy", "text": "v1.2.3 deployed"}

Available Functions

FunctionDescription
notification.slackSend a message to Slack via webhook
notification.slackRichSend a rich Slack message with blocks (title, fields, images)
notification.discordSend a message to Discord via webhook
notification.discordEmbedSend a rich Discord embed message
notification.telegramSend a message via Telegram Bot API
notification.teamsSend a message to Microsoft Teams via webhook
notification.teamsCardSend a rich MessageCard to Microsoft Teams
notification.sendAllSend a message to multiple channels at once

Examples

Send a rich Slack message with blocks (title, fields, images)

notification.slackRich $url {"title": "Deploy", "text": "v1.2.3 deployed"}

Send a message to Discord via webhook

notification.discord $webhookUrl "Build passed!"

Send a rich Discord embed message

notification.discordEmbed $url {"title": "Alert", "description": "CPU > 90%", "color": "#FF0000"}

Integration with RobinPath

import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/notification";

const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);

const result = await rp.executeScript(`
  notification.slackRich $url {"title": "Deploy", "text": "v1.2.3 deployed"}
`);

Full API Reference

See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

Related Modules

License

MIT

Versions (1)

VersionTagPublished
0.1.1latestyesterday
Install
$ robinpath install @robinpath/notification
Version0.1.1
LicenseMIT
Unpacked Size5.3 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday