Added dotenv part 2
This commit is contained in:
parent
3060e551dd
commit
5f9519b54d
1 changed files with 6 additions and 1 deletions
7
main.py
7
main.py
|
@ -1,9 +1,14 @@
|
||||||
import asyncio
|
import asyncio
|
||||||
|
import os
|
||||||
|
|
||||||
import websockets
|
import websockets
|
||||||
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
|
load_dotenv()
|
||||||
|
|
||||||
CONNECTIONS = set()
|
CONNECTIONS = set()
|
||||||
EAS_MESSAGE = ""
|
EAS_MESSAGE = ""
|
||||||
TOKEN = "o6LD27y63M0b360Pjd5B"
|
TOKEN = os.getenv("TOKEN")
|
||||||
|
|
||||||
|
|
||||||
async def handle(websocket):
|
async def handle(websocket):
|
||||||
|
|
Reference in a new issue