Still broken, but fixes env vars
This commit is contained in:
parent
439cd00cf1
commit
c99da38a57
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
2
main.py
2
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):
|
||||
|
|
Loading…
Reference in a new issue