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