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.
This commit is contained in:
8
test/feishu.ts
Normal file
8
test/feishu.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
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('推送成功');
|
||||
Reference in New Issue
Block a user