natureco-cli 2.8.2 → 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,7 +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
|
-
|
|
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
|
+
};
|
|
13
24
|
|
|
14
25
|
// Lazy load Baileys
|
|
15
26
|
function loadBaileys() {
|
|
@@ -127,7 +138,7 @@ async function startGateway() {
|
|
|
127
138
|
|
|
128
139
|
async function runGatewayWorker() {
|
|
129
140
|
// This runs in the background
|
|
130
|
-
log('gateway', 'Starting NatureCo Gateway v2.8.
|
|
141
|
+
log('gateway', 'Starting NatureCo Gateway v2.8.3...', 'green');
|
|
131
142
|
|
|
132
143
|
// Load config
|
|
133
144
|
const { getConfig } = require('../utils/config');
|
|
@@ -207,7 +218,7 @@ async function startWhatsAppProvider(sessionDir, config) {
|
|
|
207
218
|
version,
|
|
208
219
|
auth: state,
|
|
209
220
|
printQRInTerminal: false,
|
|
210
|
-
logger:
|
|
221
|
+
logger: silentLogger,
|
|
211
222
|
browser: Browsers.ubuntu('Chrome'),
|
|
212
223
|
connectTimeoutMs: 60000,
|
|
213
224
|
defaultQueryTimeoutMs: 60000,
|