mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-29 01:31:41 +00:00
Merge 18f54a949f into fd10463069
This commit is contained in:
commit
0f3be6640c
3 changed files with 55 additions and 3 deletions
|
|
@ -1324,7 +1324,15 @@ def cmd_whatsapp(args):
|
|||
print(f"\n✗ Bridge script not found at {bridge_script}")
|
||||
return
|
||||
|
||||
if not (bridge_dir / "node_modules").exists():
|
||||
node_modules_dir = bridge_dir / "node_modules"
|
||||
dependency_sentinels = [
|
||||
node_modules_dir / "@whiskeysockets" / "baileys" / "package.json",
|
||||
node_modules_dir / "express" / "package.json",
|
||||
node_modules_dir / "qrcode-terminal" / "package.json",
|
||||
node_modules_dir / "pino" / "package.json",
|
||||
]
|
||||
|
||||
if not node_modules_dir.exists() or any(not sentinel.exists() for sentinel in dependency_sentinels):
|
||||
print("\n→ Installing WhatsApp bridge dependencies (this can take a few minutes)...")
|
||||
npm = shutil.which("npm")
|
||||
if not npm:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue