2023-06-24 01:16:07 +08:00
|
|
|
|
const notify = require('./sendNotify')
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* sendNotify 推送通知功能
|
|
|
|
|
* @param text 通知头
|
|
|
|
|
* @param desp 通知体
|
|
|
|
|
* @param params 某些推送通知方式点击弹窗可跳转, 例:{ url: 'https://abc.com' }
|
|
|
|
|
* @param author 作者仓库等信息 例:`本通知 By:https://github.com/whyour/qinglong`
|
|
|
|
|
* @returns {Promise<unknown>}
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
async function main(){
|
|
|
|
|
console.log("main");
|
|
|
|
|
await notify.sendNotify("测试通知", "aaa")
|
|
|
|
|
}
|
|
|
|
|
main();
|