No sweat, TypeScript-supported Node library for sending messages to an array of different providers.
- Discord
- Slack
- Much, much more to come!
You'll need Node.js, a package manager (npm, yarn, pnpm etc.) installed.
npm install notifia
# or
yarn add notifia
# or
pnpm add notifia
// ESM is required
import { DiscordProvider } from 'notifia';
const discord = new DiscordProvider('webhookUrl');
const send = async (content: string) => {
await discord.send(content);
}
await send('Initial fire.');
setInterval(async () => await send('Fired webhook.'), 10000);