natureco-cli 2.8.1 → 2.8.3
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/package.json
CHANGED
|
@@ -211,7 +211,7 @@ body::before{
|
|
|
211
211
|
<div class="header-bot-name" id="header-bot-name">Nature Bot</div>
|
|
212
212
|
<div class="header-bot-model" id="header-bot-model">NatureCo</div>
|
|
213
213
|
</div>
|
|
214
|
-
<div class="version-badge" id="version-badge">v2.8.
|
|
214
|
+
<div class="version-badge" id="version-badge">v2.8.3</div>
|
|
215
215
|
</div>
|
|
216
216
|
<div class="messages" id="messages"></div>
|
|
217
217
|
<div class="input-area">
|
|
@@ -341,7 +341,7 @@ function dashboard(action) {
|
|
|
341
341
|
apiKey: cfg.apiKey,
|
|
342
342
|
defaultBot: cfg.defaultBot,
|
|
343
343
|
defaultBotId: cfg.defaultBotId,
|
|
344
|
-
version: 'v2.8.
|
|
344
|
+
version: 'v2.8.3',
|
|
345
345
|
bots: cfg.bots || [],
|
|
346
346
|
telegramToken: cfg.telegramToken || null,
|
|
347
347
|
whatsappConnected: cfg.whatsappConnected || false,
|
|
@@ -9,8 +9,18 @@ const LOG_FILE = path.join(os.homedir(), '.natureco', 'gateway.log');
|
|
|
9
9
|
|
|
10
10
|
// WhatsApp imports
|
|
11
11
|
let makeWASocket, useMultiFileAuthState, DisconnectReason, fetchLatestBaileysVersion, Browsers;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
|
|
13
|
+
// Silent logger for Baileys
|
|
14
|
+
const silentLogger = {
|
|
15
|
+
level: 'silent',
|
|
16
|
+
trace: () => {},
|
|
17
|
+
debug: () => {},
|
|
18
|
+
info: () => {},
|
|
19
|
+
warn: () => {},
|
|
20
|
+
error: () => {},
|
|
21
|
+
fatal: () => {},
|
|
22
|
+
child: () => silentLogger
|
|
23
|
+
};
|
|
14
24
|
|
|
15
25
|
// Lazy load Baileys
|
|
16
26
|
function loadBaileys() {
|
|
@@ -128,7 +138,7 @@ async function startGateway() {
|
|
|
128
138
|
|
|
129
139
|
async function runGatewayWorker() {
|
|
130
140
|
// This runs in the background
|
|
131
|
-
log('gateway', 'Starting NatureCo Gateway v2.8.
|
|
141
|
+
log('gateway', 'Starting NatureCo Gateway v2.8.3...', 'green');
|
|
132
142
|
|
|
133
143
|
// Load config
|
|
134
144
|
const { getConfig } = require('../utils/config');
|
|
@@ -208,7 +218,7 @@ async function startWhatsAppProvider(sessionDir, config) {
|
|
|
208
218
|
version,
|
|
209
219
|
auth: state,
|
|
210
220
|
printQRInTerminal: false,
|
|
211
|
-
logger:
|
|
221
|
+
logger: silentLogger,
|
|
212
222
|
browser: Browsers.ubuntu('Chrome'),
|
|
213
223
|
connectTimeoutMs: 60000,
|
|
214
224
|
defaultQueryTimeoutMs: 60000,
|