Skip to content

Commit

Permalink
move to new datasink service
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsdevera committed Dec 16, 2023
1 parent fd9df3f commit e8dc73e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 130 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ include
pyvenv.cfg

# ide artifacts
.vscode
.vscode

certs
7 changes: 3 additions & 4 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
DISCORD_BOT_TOKEN = CONFIG['discord_bot_token']
SINK_URL = CONFIG['sink_url']
SINK_AUTHORIZATION = CONFIG['sink_authorization']
CERTIFICATE_PATH = CONFIG['certificate_path'] if CONFIG['certificate_path'] != '' else False

########################################################################
# VALIDATOR SETUP
Expand Down Expand Up @@ -91,12 +92,10 @@ def sinkData(data: dict = {}):
record = createRecord(data)

headers = {
'apikey': SINK_AUTHORIZATION,
'authorization': f'Bearer {SINK_AUTHORIZATION}'
'authorization': SINK_AUTHORIZATION
}

response = requests.post(SINK_URL, headers=headers, json=data)

response = requests.post(SINK_URL, headers=headers, json=data, verify=CERTIFICATE_PATH)
return response

def parse_event_message(message: discord.Message) -> dict:
Expand Down
63 changes: 0 additions & 63 deletions supabase/functions/urlmon-jobs-router/index.ts

This file was deleted.

62 changes: 0 additions & 62 deletions supabase/functions/urlmon-url-extractor/index.ts

This file was deleted.

0 comments on commit e8dc73e

Please sign in to comment.