diff --git a/.env.example b/.env.example index 8162b8a..65e42c7 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,3 @@ DISCORD_TOKEN= -WEBHOOK_URL= -API_KEY= \ No newline at end of file +WEBHOOK_N8N_IMGFLIP_URL= +WEBHOOK_N8N_IMGFLIP_KEY= \ No newline at end of file diff --git a/src/main.py b/src/main.py index 06d18b1..c55447e 100644 --- a/src/main.py +++ b/src/main.py @@ -26,10 +26,13 @@ async def meme(interaction: discord.Interaction, prompt: str): try: # Call the webhook with the prompt and API key webhook_payload = {"query": prompt} - headers = {"apiKey": os.getenv("API_KEY"), "Content-Type": "application/json"} + headers = { + "apiKey": os.getenv("WEBHOOK_N8N_IMGFLIP_KEY"), + "Content-Type": "application/json", + } async with httpx.AsyncClient() as httpx_client: response = await httpx_client.post( - os.getenv("WEBHOOK_URL"), + os.getenv("WEBHOOK_N8N_IMGFLIP_URL"), json=webhook_payload, headers=headers, timeout=120,