1.0.2 • Published 8 months ago

qq-robot-sign v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

QQ-ROBOT-SIGN

QQ 机器人签名算法

安装

npm install qq-robot-sign

使用

const { sign } = require("qq-robot-sign");

const clientSecret = "xxxxxx";

router.post("/webhook", async (req, res) => {
  const body = req.body;
  if (body.op === 13) {
    const result = sign({
      event_ts: body.d.event_ts,
      plain_token: body.d.plain_token,
      clientSecret,
    });
    return res.send(result);
  }
});
1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago