move cogs to ext and create module
This commit is contained in:
parent
07e638985e
commit
cd1d899054
2 changed files with 2 additions and 2 deletions
4
main.py
4
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)
|
0
src/ext/__init__.py
Normal file
0
src/ext/__init__.py
Normal file
Loading…
Add table
Reference in a new issue