trompot 1.1.0 → 1.3.0
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.
- package/README.md +8 -2
- package/package.json +80 -79
package/README.md
CHANGED
|
@@ -53,8 +53,14 @@ Após iniciar o bot um QR Code será emprimido no terminal, escane-o com seu Wha
|
|
|
53
53
|
const client = new Client(new WhatsAppBot());
|
|
54
54
|
client.connect("./path-to-auth");
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
// Exibe o QR code no terminal (padrão Baileys)
|
|
57
|
+
client.on("qr", async (qr) => {
|
|
58
|
+
try {
|
|
59
|
+
const QRCode = (await import("qrcode")).default;
|
|
60
|
+
console.log(await QRCode.toString(qr, { type: "terminal" }));
|
|
61
|
+
} catch (err) {
|
|
62
|
+
console.log("QRCode:", qr);
|
|
63
|
+
}
|
|
58
64
|
});
|
|
59
65
|
```
|
|
60
66
|
|
package/package.json
CHANGED
|
@@ -1,79 +1,80 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "trompot",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Chatbot API multi-plataforma em TypeScript. Fork do
|
|
5
|
-
"main": "lib/index.js",
|
|
6
|
-
"types": "lib/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"example": "ts-node-dev example/index.ts",
|
|
9
|
-
"cluster": "ts-node-dev example/cluster.ts",
|
|
10
|
-
"telegram": "ts-node-dev example/telegram.ts",
|
|
11
|
-
"build": "npm i && npm run clean && tsc",
|
|
12
|
-
"clean": "rimraf lib",
|
|
13
|
-
"lint": "eslint ."
|
|
14
|
-
},
|
|
15
|
-
"repository": {
|
|
16
|
-
"type": "git",
|
|
17
|
-
"url": "git+https://github.com/TelksBr/trompot.git"
|
|
18
|
-
},
|
|
19
|
-
"keywords": [],
|
|
20
|
-
"author": "TelksBr",
|
|
21
|
-
"license": "MIT",
|
|
22
|
-
"bugs": {
|
|
23
|
-
"url": "https://github.com/TelksBr/trompot/issues"
|
|
24
|
-
},
|
|
25
|
-
"homepage": "https://github.com/TelksBr/trompot#readme",
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"@adiwajshing/keyed-db": "0.2.4",
|
|
28
|
-
"@hapi/boom": "9.1.3",
|
|
29
|
-
"@whiskeysockets/baileys": "^6.7.
|
|
30
|
-
"axios": "1.6.5",
|
|
31
|
-
"body-parser": "1.20.2",
|
|
32
|
-
"cluster": "0.7.7",
|
|
33
|
-
"crypto-digest-sync": "1.0.0",
|
|
34
|
-
"express": "4.18.2",
|
|
35
|
-
"link-preview-js": "3.0.0",
|
|
36
|
-
"long": "5.2.3",
|
|
37
|
-
"music-metadata": "7.12.3",
|
|
38
|
-
"node-cache": "5.1.2",
|
|
39
|
-
"node-telegram-bot-api": "0.64.0",
|
|
40
|
-
"pino": "9.7.0",
|
|
41
|
-
"qrcode": "1.5.4",
|
|
42
|
-
"qrcode-terminal": "0.12.0"
|
|
43
|
-
},
|
|
44
|
-
"files": [
|
|
45
|
-
"lib/**/*"
|
|
46
|
-
],
|
|
47
|
-
"devDependencies": {
|
|
48
|
-
"@eslint/js": "^9.14.0",
|
|
49
|
-
"@laxeder/wa-sticker": "4.4.5",
|
|
50
|
-
"@types/body-parser": "1.19.5",
|
|
51
|
-
"@types/express": "5.0.2",
|
|
52
|
-
"@types/node": "^22.15.29",
|
|
53
|
-
"@types/node-telegram-bot-api": "0.64.8",
|
|
54
|
-
"@types/ws": "8.18.1",
|
|
55
|
-
"dotenv": "16.5.0",
|
|
56
|
-
"eslint": "^9.14.0",
|
|
57
|
-
"eslint-config-prettier": "10.1.5",
|
|
58
|
-
"eslint-plugin-prettier": "^5.2.1",
|
|
59
|
-
"globals": "16.2.0",
|
|
60
|
-
"jimp": "^
|
|
61
|
-
"prettier": "^3.3.3",
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"typescript
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "trompot",
|
|
3
|
+
"version": "1.3.0",
|
|
4
|
+
"description": "Chatbot API multi-plataforma em TypeScript. Fork do Trompot.",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"types": "lib/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"example": "ts-node-dev example/index.ts",
|
|
9
|
+
"cluster": "ts-node-dev example/cluster.ts",
|
|
10
|
+
"telegram": "ts-node-dev example/telegram.ts",
|
|
11
|
+
"build": "npm i && npm run clean && tsc",
|
|
12
|
+
"clean": "rimraf lib",
|
|
13
|
+
"lint": "eslint ."
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/TelksBr/trompot.git"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [],
|
|
20
|
+
"author": "TelksBr",
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/TelksBr/trompot/issues"
|
|
24
|
+
},
|
|
25
|
+
"homepage": "https://github.com/TelksBr/trompot#readme",
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@adiwajshing/keyed-db": "0.2.4",
|
|
28
|
+
"@hapi/boom": "9.1.3",
|
|
29
|
+
"@whiskeysockets/baileys": "^6.7.20",
|
|
30
|
+
"axios": "1.6.5",
|
|
31
|
+
"body-parser": "1.20.2",
|
|
32
|
+
"cluster": "0.7.7",
|
|
33
|
+
"crypto-digest-sync": "1.0.0",
|
|
34
|
+
"express": "4.18.2",
|
|
35
|
+
"link-preview-js": "3.0.0",
|
|
36
|
+
"long": "5.2.3",
|
|
37
|
+
"music-metadata": "7.12.3",
|
|
38
|
+
"node-cache": "5.1.2",
|
|
39
|
+
"node-telegram-bot-api": "0.64.0",
|
|
40
|
+
"pino": "9.7.0",
|
|
41
|
+
"qrcode": "1.5.4",
|
|
42
|
+
"qrcode-terminal": "0.12.0"
|
|
43
|
+
},
|
|
44
|
+
"files": [
|
|
45
|
+
"lib/**/*"
|
|
46
|
+
],
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@eslint/js": "^9.14.0",
|
|
49
|
+
"@laxeder/wa-sticker": "4.4.5",
|
|
50
|
+
"@types/body-parser": "1.19.5",
|
|
51
|
+
"@types/express": "5.0.2",
|
|
52
|
+
"@types/node": "^22.15.29",
|
|
53
|
+
"@types/node-telegram-bot-api": "0.64.8",
|
|
54
|
+
"@types/ws": "8.18.1",
|
|
55
|
+
"dotenv": "16.5.0",
|
|
56
|
+
"eslint": "^9.14.0",
|
|
57
|
+
"eslint-config-prettier": "10.1.5",
|
|
58
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
59
|
+
"globals": "16.2.0",
|
|
60
|
+
"jimp": "^1.6.0",
|
|
61
|
+
"prettier": "^3.3.3",
|
|
62
|
+
"rimraf": "^6.0.1",
|
|
63
|
+
"sharp": "0.32.6",
|
|
64
|
+
"ts-node-dev": "2.0.0",
|
|
65
|
+
"typescript": "5.8.3",
|
|
66
|
+
"typescript-eslint": "^8.12.2"
|
|
67
|
+
},
|
|
68
|
+
"peerDependencies": {
|
|
69
|
+
"@laxeder/wa-sticker": "4.4.5",
|
|
70
|
+
"sharp": "0.34.2"
|
|
71
|
+
},
|
|
72
|
+
"peerDependenciesMeta": {
|
|
73
|
+
"@laxeder/wa-sticker": {
|
|
74
|
+
"optional": true
|
|
75
|
+
},
|
|
76
|
+
"sharp": {
|
|
77
|
+
"optional": true
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|