Added blacklist, whitelist, banned words, and made embeds function

This commit is contained in:
Stijn De Clercq
2020-09-30 15:56:28 +02:00
parent d08fa2b721
commit 13548f10c6
7 changed files with 160 additions and 9 deletions

5
bot.py
View File

@@ -8,8 +8,11 @@ prefixes = ["/"]
client = commands.Bot(command_prefix=prefixes, case_insensitive=True)
client.prefixes = prefixes
# Load this cog first so the other cogs can use properties initialized here
client.load_extension("cogs.events")
for file in os.listdir("./cogs"):
if file.endswith(".py"):
if file.endswith(".py") and not (file.startswith(("events",))):
client.load_extension(f"cogs.{file[:-3]}")
client.run("NzYwNTI5NDY2MDI3MDE2MjUy.X3NYQg.Nz3bwxgltlayMStfT7F-OCbx9pE")