Compare commits
2 Commits
2e3c034eed
...
99d307a2a7
Author | SHA1 | Date | |
---|---|---|---|
99d307a2a7
|
|||
b412eafc97
|
@ -2,7 +2,7 @@ name: QuotesBot
|
||||
on:
|
||||
schedule:
|
||||
# - cron: '35 */4 * * *'
|
||||
- cron: '04 * * * *'
|
||||
- cron: '22 * * * *'
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
3
app.py
3
app.py
@ -18,4 +18,5 @@ if source_object.reason == "OK":
|
||||
headers = {'Authorization': 'Bearer ' + post_token}
|
||||
payload = {'status': f"{choice['quote']}\n\n - {choice['author']}\n\n#RandomQuote #quotes #quote #bot", 'visibility': 'public'}
|
||||
response = post(post_endpoint, headers=headers, data=payload)
|
||||
print(response.reason, loads(response.text)['url'])
|
||||
print(response.reason)
|
||||
print(loads(response.text)['url'])
|
||||
|
Reference in New Issue
Block a user