Files
notifier/test/feishu.ts
abearxiong 6cf949bcd1 feat: add Feishu notifier for message notifications
- Implemented a lightweight notification library with support for multiple channels.
- Added FeishuNotifier class to send messages via Feishu webhook.
- Created README documentation for usage and configuration of Feishu notifier.
- Added TypeScript configuration for the project.
- Included a test script for verifying Feishu message notifications.
2026-01-08 16:43:53 +08:00

9 lines
289 B
TypeScript

import { FeishuNotifier } from '../src/notiify/feishu.ts';
const webhook = 'https://open.feishu.cn/open-apis/bot/v2/hook/c1c32e36-ddc6-4965-8943-fc826f4f5060';
const feishu = new FeishuNotifier({ webhook });
await feishu.notify('测试飞书推送消息');
console.log('推送成功');