修复 ComWeChat 文件类型检测错误
This commit is contained in:
parent
a768cc6427
commit
d15d915bf6
|
@ -31,7 +31,7 @@
|
||||||
"node-schedule": "^2.1.1",
|
"node-schedule": "^2.1.1",
|
||||||
"node-xlsx": "^0.23.0",
|
"node-xlsx": "^0.23.0",
|
||||||
"pm2": "^5.3.0",
|
"pm2": "^5.3.0",
|
||||||
"puppeteer": "^20.7.4",
|
"puppeteer": "^20.8.0",
|
||||||
"redis": "^4.6.7",
|
"redis": "^4.6.7",
|
||||||
"sequelize": "^6.32.1",
|
"sequelize": "^6.32.1",
|
||||||
"sqlite3": "^5.1.6",
|
"sqlite3": "^5.1.6",
|
||||||
|
|
|
@ -2,6 +2,7 @@ import { WebSocketServer } from "ws"
|
||||||
import { randomUUID } from "crypto"
|
import { randomUUID } from "crypto"
|
||||||
import path from "node:path"
|
import path from "node:path"
|
||||||
import fs from "node:fs"
|
import fs from "node:fs"
|
||||||
|
import { fileTypeFromBuffer } from "file-type"
|
||||||
|
|
||||||
Bot.adapter.push(new class ComWeChatAdapter {
|
Bot.adapter.push(new class ComWeChatAdapter {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
Loading…
Reference in New Issue