use bash script
This commit is contained in:
parent
3e9a22e8ab
commit
c919c0ccf4
11
get_party.sh
Normal file
11
get_party.sh
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# set envs and paths
|
||||||
|
source /home/cardigan/rss-discord-bot/venv/bin/activate
|
||||||
|
python /home/cardigan/rss-discord-bot/venv/bin/python3.11
|
||||||
|
DISCORD_CHANNEL=""
|
||||||
|
DISCORD_TOKEN=""
|
||||||
|
DISCORD_CARDIPARTY_PING=""
|
||||||
|
|
||||||
|
# let's go
|
||||||
|
cv api4 Event.get '{"select":["title","address.city","start_date","summary"],"join":[["Address AS address","LEFT",["loc_block_id.address_id","=","address.id"]]],"orderBy":{"start_date":"DESC"},"limit":1}' | ./webhook.py
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python
|
||||||
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
import json
|
import json
|
||||||
|
|
Loading…
Reference in a new issue