add black history code
This commit is contained in:
10
globals.py
10
globals.py
@ -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"}'))
|
||||
|
Reference in New Issue
Block a user