yo
This commit is contained in:
3
main.py
3
main.py
@@ -1,4 +1,4 @@
|
|||||||
from flask import Flask
|
from flask import Flask, request
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
@@ -50,6 +50,7 @@ def home():
|
|||||||
def convert(uuid):
|
def convert(uuid):
|
||||||
webhook = UUID_TO_WEBHOOK_LOOKUP.get(uuid)
|
webhook = UUID_TO_WEBHOOK_LOOKUP.get(uuid)
|
||||||
ghost_payload = request.get_json()
|
ghost_payload = request.get_json()
|
||||||
|
print(ghost_payload)
|
||||||
discord_payload = convert_ghost_to_discord(ghost_payload)
|
discord_payload = convert_ghost_to_discord(ghost_payload)
|
||||||
|
|
||||||
httpx.post(webhook, data=discord_payload)
|
httpx.post(webhook, data=discord_payload)
|
||||||
|
|||||||
Reference in New Issue
Block a user