Skip to content

Instantly share code, notes, and snippets.

@100ze
Created November 4, 2020 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 100ze/9b6acf773d95048cea5501aad2bb89e5 to your computer and use it in GitHub Desktop.
Save 100ze/9b6acf773d95048cea5501aad2bb89e5 to your computer and use it in GitHub Desktop.
# 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