4 Commits

Author SHA1 Message Date
2eeaa34401 working 2025-06-05 19:28:25 +00:00
9bd34aeb2a fixed
All checks were successful
QuotesBot / deploy (push) Successful in 32s
2025-06-05 19:26:01 +00:00
99d307a2a7 debug line
Some checks failed
QuotesBot / deploy (push) Failing after 24s
2025-06-05 19:19:34 +00:00
b412eafc97 debug line 2025-06-05 19:18:43 +00:00
2 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,7 @@
name: QuotesBot name: QuotesBot
on: on:
schedule: schedule:
# - cron: '35 */4 * * *' - cron: '35 */4 * * *'
- cron: '04 * * * *'
jobs: jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest

3
app.py
View File

@ -18,4 +18,5 @@ if source_object.reason == "OK":
headers = {'Authorization': 'Bearer ' + post_token} headers = {'Authorization': 'Bearer ' + post_token}
payload = {'status': f"{choice['quote']}\n\n - {choice['author']}\n\n#RandomQuote #quotes #quote #bot", 'visibility': 'public'} 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) response = post(post_endpoint, headers=headers, data=payload)
print(response.reason, loads(response.text)['url']) print(response.reason)
print(loads(response.text)['url'])