This commit is contained in:
@ -1,6 +1,7 @@
|
|||||||
name: DogFacts
|
name: DogFacts
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
push
|
||||||
|
# workflow_dispatch:
|
||||||
# schedule:
|
# schedule:
|
||||||
# - cron: '35 */4 * * *'
|
# - cron: '35 */4 * * *'
|
||||||
jobs:
|
jobs:
|
||||||
@ -20,7 +21,7 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
python dog_facts.py
|
python dog_facts.py
|
||||||
env:
|
env:
|
||||||
BOTS_DOGFACTS_TOKEN: ${{ secrets.BOTS_BOTSY_TOKEN }}
|
BOTS_DOGFACTS_TOKEN: ${{ secrets.BOTS_DOGFACTS_TOKEN }}
|
||||||
BOTS_ENDPOINT: ${{ secrets.BOTS_ENDPOINT }}
|
BOTS_ENDPOINT: ${{ secrets.BOTS_ENDPOINT }}
|
||||||
PUSHOVER_ENDPOINT: ${{ secrets.PUSHOVER_ENDPOINT }}
|
PUSHOVER_ENDPOINT: ${{ secrets.PUSHOVER_ENDPOINT }}
|
||||||
PUSHOVER_USER_TOKEN: ${{ secrets.PUSHOVER_USER_TOKEN }}
|
PUSHOVER_USER_TOKEN: ${{ secrets.PUSHOVER_USER_TOKEN }}
|
||||||
|
@ -8,7 +8,7 @@ from globals import *
|
|||||||
|
|
||||||
def notify(priority, message):
|
def notify(priority, message):
|
||||||
r = post("https://api.pushover.net/1/messages.json", data = {
|
r = post("https://api.pushover.net/1/messages.json", data = {
|
||||||
"token": po_test_token,
|
"token": po_bots_token,
|
||||||
"user": po_user_token,
|
"user": po_user_token,
|
||||||
"message": "dog facts: " + message,
|
"message": "dog facts: " + message,
|
||||||
"priority": priority
|
"priority": priority
|
||||||
|
Reference in New Issue
Block a user