add black history code
All checks were successful
QuotesBot / deploy (push) Successful in 30s
DogFacts / deploy (push) Successful in 23s
ReleaseBot / deploy (push) Successful in 30s
QuipBot / deploy (push) Successful in 12s
PuppyBot / deploy (push) Successful in 29s

This commit is contained in:
2025-07-10 07:05:22 -05:00
parent 9914f530b7
commit 7315264346
2 changed files with 27 additions and 0 deletions

View File

@ -1,5 +1,7 @@
from os import getenv
from requests import post
from munch import Munch
from json import loads
def notify(priority, message):
r = post("https://api.pushover.net/1/messages.json", data = {
@ -28,6 +30,11 @@ quip_file = getenv('QUIP_FILE')
quip_tags = getenv('QUIP_TAGS')
quip_token = getenv('QUIP_TOKEN')
## BlackHistoryFacts
# blackhistory_token = getenv('BLACKHISTORY_POST_TOKEN')
blackhistory_api = getenv('BLACKHISTORY_API_TOKEN')
blackhistory_endpoint = getenv('BLACKHISTORY_API_ENDPOINT')
## Quotes file path
quotes_source = getenv('QUOTES_SOURCE')
@ -62,3 +69,6 @@ do_token = getenv('DO_API_KEY')
# Wikipedia creds
wikimedia_endpoint = 'https://api.wikimedia.org/feed/v1/wikipedia/en/onthisday/all'
wikipedia_token = getenv('WIKIPEDIA_ACCESS_TOKEN')
# AP API ENDPOINTS
endpoints = Munch(loads('{"status": "/api/v1/statuses", "media": "/api/v1/media", "timeline": "/api/v1/timelines/public"}'))