Skip to content

Instantly share code, notes, and snippets.

@100ze
Created November 4, 2020 23:31
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/b94d00e160e6fafc3a8d54ead6ec66fd to your computer and use it in GitHub Desktop.
Save 100ze/b94d00e160e6fafc3a8d54ead6ec66fd to your computer and use it in GitHub Desktop.
# importando módulos
import os
from dotenv import load_dotenv
# importando a biblioteca Discord.py
import discord
# pegando o token salvo no arquivo .env
load_dotenv()
TOKEN = os.getenv('DISCORD_TOKEN')
# armazenando o objeto client em uma variável
client = discord.Client()
# mostrando que o objeto foi criado
print(client)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment