whatsapp-pi 1.0.12 → 1.0.15

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/whatsapp-pi.ts +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whatsapp-pi",
3
- "version": "1.0.12",
3
+ "version": "1.0.15",
4
4
  "type": "module",
5
5
  "description": "WhatsApp integration extension for Pi",
6
6
  "main": "whatsapp-pi.ts",
package/whatsapp-pi.ts CHANGED
@@ -13,8 +13,8 @@ export default function (pi: ExtensionAPI) {
13
13
  default: false
14
14
  });
15
15
 
16
- pi.registerFlag("whatsapp-pi-off", {
17
- description: "Disable WhatsApp-Pi on startup",
16
+ pi.registerFlag("whatsapp-pi-online", {
17
+ description: "Enable WhatsApp-Pi on startup",
18
18
  type: "boolean",
19
19
  default: false
20
20
  });
@@ -60,11 +60,11 @@ export default function (pi: ExtensionAPI) {
60
60
  }
61
61
 
62
62
  // Check whatsapp flag
63
- const isWhatsappPiOff = process.argv.includes("--whatsapp-pi-off");
63
+ const isWhatsappPiOn = process.argv.includes("--whatsapp-pi-online");
64
64
 
65
65
  // Auto-connect removed to avoid socket conflicts
66
66
  if (await sessionManager.isRegistered()) {
67
- const shouldConnect = !isWhatsappPiOff;
67
+ const shouldConnect = isWhatsappPiOn;
68
68
 
69
69
  if (shouldConnect) {
70
70
  ctx.ui.setStatus('whatsapp', '| WhatsApp: Auto-connecting...');