discord read token from .env file

PHOTO EMBED

Tue Mar 30 2021 20:39:24 GMT+0000 (Coordinated Universal Time)

Saved by @jan2705 #python

from discord.ext import commands
from os import getenv
from dotenv import load_dotenv

client = commands.Bot(command_prefix="!")
load_dotenv()

client.run(str(getenv('BOT_TOKEN')))
content_copyCOPY