Modules@robinpath/notification
@robinpath/notification
0.1.1PublicUnified notifications: Slack, Discord, Telegram, and MS Teams via webhooks
@robinpath/notification
Unified notifications to Slack, Discord, Telegram, and Microsoft Teams via webhooks
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
| Function | Description |
|---|---|
notification.slack | Send a message to Slack via webhook |
notification.slackRich | Send a rich Slack message with blocks (title, fields, images) |
notification.discord | Send a message to Discord via webhook |
notification.discordEmbed | Send a rich Discord embed message |
notification.telegram | Send a message via Telegram Bot API |
notification.teams | Send a message to Microsoft Teams via webhook |
notification.teamsCard | Send a rich MessageCard to Microsoft Teams |
notification.sendAll | Send 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
@robinpath/slack— Slack module for complementary functionality@robinpath/discord— Discord module for complementary functionality@robinpath/teams— Teams module for complementary functionality@robinpath/telegram— Telegram module for complementary functionality@robinpath/whatsapp— WhatsApp module for complementary functionality
License
MIT
Versions (1)
| Version | Tag | Published |
|---|---|---|
| 0.1.1 | latest | yesterday |
Related Modules
communication
0
@robinpath/discord
v0.1.0robinpath
Discord module for RobinPath.
0 downloads
...
communication
0
@robinpath/notify
v0.1.1robinpath
Notify module for RobinPath.
0 downloads
...
communication
0
@robinpath/slack
v0.1.0robinpath
Slack Web API and Incoming Webhooks client for messaging, channels, reactions, file uploads, and user management
0 downloads
...
communication
0
@robinpath/sms
v0.1.0robinpath
SMS sending via Twilio and Vonage with validation, formatting, lookup, and cost estimation
0 downloads
...
Install
$ robinpath install @robinpath/notification Version0.1.1
LicenseMIT
Unpacked Size5.3 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

