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 | |
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 | |
# 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') |
OlderNewer