From 4d71710715cd18b8131ce812f42045228b77ca0a Mon Sep 17 00:00:00 2001 From: Stijn De Clercq Date: Tue, 29 Sep 2020 17:55:04 +0200 Subject: [PATCH] add cogs folder & main file --- bot.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 bot.py diff --git a/bot.py b/bot.py new file mode 100644 index 0000000..4d9d40a --- /dev/null +++ b/bot.py @@ -0,0 +1,15 @@ +import os + +from discord.ext import commands + + +prefixes = ["/"] + +client = commands.Bot(command_prefix=prefixes, case_insensitive=True) +client.prefixes = prefixes + +for file in os.listdir("./cogs"): + if file.endswith(".py"): + client.load_extension(f"cogs.{file[:-3]}") + +client.run("NzYwNTI5NDY2MDI3MDE2MjUy.X3NYQg.Nz3bwxgltlayMStfT7F-OCbx9pE")