13 lines
287 B
Python
13 lines
287 B
Python
import requests
|
|
import subprocess
|
|
import os
|
|
|
|
webhook_url = os.environ['WEBHOOK_URL']
|
|
bun_path = '/home/user/.bun/bin/bun'
|
|
result = subprocess.run([bun_path, "run", "getWishlist.mjs"], capture_output=True, text=True)
|
|
|
|
requests.post(
|
|
webhook_url,
|
|
json={"content": result.stdout}
|
|
)
|