beecork 1.3.8 → 1.3.10
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/dist/index.js +9 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -135,7 +135,7 @@ channelCmd
|
|
|
135
135
|
});
|
|
136
136
|
program
|
|
137
137
|
.command('discord')
|
|
138
|
-
.description('
|
|
138
|
+
.description('Set up Discord — interactive setup for bot token and user ID')
|
|
139
139
|
.action(async () => {
|
|
140
140
|
const readline = await import('node:readline');
|
|
141
141
|
const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
|
|
@@ -163,15 +163,15 @@ program
|
|
|
163
163
|
});
|
|
164
164
|
program
|
|
165
165
|
.command('whatsapp')
|
|
166
|
-
.description('
|
|
166
|
+
.description('Set up WhatsApp — enter phone number, then scan QR code to pair')
|
|
167
167
|
.action(async () => {
|
|
168
168
|
const readline = await import('node:readline');
|
|
169
169
|
const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
|
|
170
170
|
const ask = (q, def) => new Promise(r => rl.question(def ? `${q} [${def}]: ` : `${q}: `, a => r(a.trim() || def || '')));
|
|
171
171
|
console.log('\nWhatsApp Setup\n');
|
|
172
172
|
console.log(' WhatsApp connects via QR code scanning (like WhatsApp Web).');
|
|
173
|
-
console.log('
|
|
174
|
-
console.log(' Scan it with your phone to
|
|
173
|
+
console.log(' After setup, run "beecork start" and the QR code will appear');
|
|
174
|
+
console.log(' in your terminal. Scan it with your phone to pair.\n');
|
|
175
175
|
const number = await ask('Your WhatsApp phone number (e.g., 14155551234)');
|
|
176
176
|
if (!number) {
|
|
177
177
|
console.log('No number provided. Cancelled.');
|
|
@@ -188,12 +188,15 @@ program
|
|
|
188
188
|
allowedNumbers: [number],
|
|
189
189
|
};
|
|
190
190
|
saveConfig(config);
|
|
191
|
-
console.log('\n✓ WhatsApp configured.
|
|
191
|
+
console.log('\n✓ WhatsApp configured.');
|
|
192
|
+
console.log(' Next: run "beecork start" — the QR code will appear in your terminal.');
|
|
193
|
+
console.log(' Scan it with your phone to pair. Once paired, press Ctrl+C and');
|
|
194
|
+
console.log(' run "beecork start" again for background operation.\n');
|
|
192
195
|
rl.close();
|
|
193
196
|
});
|
|
194
197
|
program
|
|
195
198
|
.command('webhook')
|
|
196
|
-
.description('
|
|
199
|
+
.description('Set up Webhook — enable HTTP API for triggering Beecork from any service')
|
|
197
200
|
.action(async () => {
|
|
198
201
|
const readline = await import('node:readline');
|
|
199
202
|
const crypto = await import('node:crypto');
|