1.0.0 • Published 5 years ago
node-server-chan v1.0.0
node-server-chan
by 草梅友仁
Server酱的node.js端模块。为了使用方便专门抽离出一个模块。使用教程见https://sc.ftqq.com/3.version
安装
npm i node-server-chan -S
使用
import { ServerChan } from 'node-server-chan'
//SCKEY请前往 https://sc.ftqq.com 领取
ServerChan.init('SCKEY')
//标题必填,内容选填
ServerChan.noticeMaster('text')
ServerChan.noticeMaster('text', 'desp')