paper-pigeon
v1.0.10
Published
This is a lightweight library to send notifications to discord
Downloads
9
Maintainers
Readme
Installation
npm i paper-pigeon
Live Demo
Discord Usage
import { Discord } from 'paper-pigeon';
const send = new Discord("WEBHOOK_URL");
send.message("Starting server!");
send.success("Data loaded from API");
send.error("Failed to load resource");
Get Discord Webhook URL
Open Discord -> Integrations -> Create Webhook -> Copy Webhook URL
Slack Usage
import { Slack } from 'paper-pigeon';
const send = new Slack("WEBHOOK_URL");
send.message("Starting server!");
send.success("Data loaded from API");
send.error("Failed to load resource");
Get Slack Webhook URL
Create Slack App -> Add incoming webhooks feature -> Activate Webhook -> Add new webhook -> Copy webhook URL