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 módulos | |
import os | |
# importando o módulo random | |
import random | |
from dotenv import load_dotenv | |
from discord.ext import commands | |
# pegando o token salvo no arquivo .env | |
load_dotenv() | |
TOKEN = os.getenv('DISCORD_TOKEN') |
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 módulos | |
import os | |
# importando o módulo random | |
import random | |
from dotenv import load_dotenv | |
from discord.ext import commands | |
# pegando o token salvo no arquivo .env | |
load_dotenv() | |
TOKEN = os.getenv('DISCORD_TOKEN') |
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 módulos | |
import os | |
from dotenv import load_dotenv | |
from discord.ext import commands | |
# pegando o token salvo no arquivo .env | |
load_dotenv() | |
TOKEN = os.getenv('DISCORD_TOKEN') | |
# definindo o prefixo do bot e armazenando o objeto 'bot' |
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 módulos | |
import os | |
from dotenv import load_dotenv | |
# importando módulo de bots da biblioteca Discord.py | |
from discord.ext import commands | |
# pegando o token salvo no arquivo .env | |
load_dotenv() | |
TOKEN = os.getenv('DISCORD_TOKEN') |
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 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') |
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 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') |
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
pip install -U discord.py |
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
# VARIAVEL=TOKEN | |
DISCORD_TOKEN="NTTEwgB2Acz1ODxNc_LFZxO3WC95DR5h6Qv.LY4E33FNjcMTg0.XLN5Ce" |
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 |
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
pip install -U python-dotenv |
NewerOlder