koishi-plugin-node-async-bot-all 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +2 -3
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -401,7 +401,6 @@ async function getCASSIE(ctx, session, name2) {
401
401
  try {
402
402
  const fileBuffer = await import_fs2.default.promises.readFile(fullPath);
403
403
  log.info(fullPath);
404
- const bufferToSend = Buffer.from(fileBuffer);
405
404
  if (!ctx.silk.isSilk(fileBuffer)) {
406
405
  msg = {
407
406
  "time": time,
@@ -414,7 +413,7 @@ async function getCASSIE(ctx, session, name2) {
414
413
  log.info("Sent: A audio file.");
415
414
  msg = {
416
415
  "time": time,
417
- "data": bufferToSend,
416
+ "data": fileBuffer,
418
417
  "success": 0
419
418
  };
420
419
  }
@@ -442,7 +441,7 @@ async function getCASSIE(ctx, session, name2) {
442
441
  __name(getCASSIE, "getCASSIE");
443
442
 
444
443
  // package.json
445
- var version = "2.0.1";
444
+ var version = "2.0.2";
446
445
 
447
446
  // src/index.ts
448
447
  var inject = ["silk", "database"];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-node-async-bot-all",
3
3
  "description": "NodeAsync Bot插件(自用)",
4
- "version": "2.0.1",
4
+ "version": "2.0.2",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "contributors": [