Created
November 4, 2020 16:03
-
-
Save 100ze/9b6acf773d95048cea5501aad2bb89e5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# importando o módulo os | |
import os | |
# importando o módulo dotenv | |
from dotenv import load_dotenv | |
# carregando todas as variáveis do arquivo .env | |
load_dotenv() | |
# pegando o conteúdo da váriavel DISCORD_TOKEN e colocando na variável TOKEN | |
TOKEN = os.getenv('DISCORD_TOKEN') | |
# mostrando o valor pego no terminal | |
print(TOKEN) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment