add uv files + python script to send to webhook
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
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}
|
||||
)
|
||||
Reference in New Issue
Block a user