From c99da38a57f8f79d0ad3ee0a53283890c1664d76 Mon Sep 17 00:00:00 2001 From: askiiart Date: Tue, 29 Aug 2023 15:23:51 -0500 Subject: [PATCH] Still broken, but fixes env vars --- generate.py | 2 ++ main.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/generate.py b/generate.py index 5746646..fa9cc80 100644 --- a/generate.py +++ b/generate.py @@ -1,5 +1,7 @@ from poe_api_wrapper import PoeApi import os +from dotenv import load_dotenv +load_dotenv() client = PoeApi(os.environ['POE_TOKEN']) import asyncio diff --git a/main.py b/main.py index e08ec23..99c9d7f 100644 --- a/main.py +++ b/main.py @@ -26,7 +26,7 @@ monsterForum = os.environ['MONSTER_FORUM'] npcForum = os.environ['NPC_FORUM'] otherForum = os.environ['OTHER_FORUM'] logChannel = os.environ['LOG_CHANNEL'] -autogen = True if os.environ('AUTOGEN') == 'true' else False +autogen = True if os.environ['AUTOGEN'] == 'true' else False @client.event async def on_message(message):