From cd1d899054fc3e44b7f6285929dd5b63aa201750 Mon Sep 17 00:00:00 2001 From: fanyx Date: Fri, 13 Nov 2020 15:53:55 +0100 Subject: [PATCH] move cogs to ext and create module --- main.py | 4 ++-- src/ext/__init__.py | 0 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 src/ext/__init__.py diff --git a/main.py b/main.py index 484b7f0..79e7cc6 100644 --- a/main.py +++ b/main.py @@ -14,10 +14,10 @@ bot = Bot(command_prefix="~ak ") token = config['AUTH']['token'] # load extensions -for file in os.listdir("src/cogs"): +for file in os.listdir("src/ext"): if file.endswith(".py"): name = file[:-3] - bot.load_extension(f"src.cogs.{name}") + bot.load_extension(f"src.ext.{name}") if __name__ == "__main__": bot.run(token) \ No newline at end of file diff --git a/src/ext/__init__.py b/src/ext/__init__.py new file mode 100644 index 0000000..e69de29