Still broken, but fixes env vars

This commit is contained in:
askiiart 2023-08-29 15:23:51 -05:00
parent 439cd00cf1
commit c99da38a57
No known key found for this signature in database
GPG key ID: 66BA0F77DCABF974
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,7 @@
from poe_api_wrapper import PoeApi from poe_api_wrapper import PoeApi
import os import os
from dotenv import load_dotenv
load_dotenv()
client = PoeApi(os.environ['POE_TOKEN']) client = PoeApi(os.environ['POE_TOKEN'])
import asyncio import asyncio

View file

@ -26,7 +26,7 @@ monsterForum = os.environ['MONSTER_FORUM']
npcForum = os.environ['NPC_FORUM'] npcForum = os.environ['NPC_FORUM']
otherForum = os.environ['OTHER_FORUM'] otherForum = os.environ['OTHER_FORUM']
logChannel = os.environ['LOG_CHANNEL'] 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 @client.event
async def on_message(message): async def on_message(message):