Event cogs import fixed

This commit is contained in:
= 2025-04-06 12:27:38 +07:00
parent 0c776039b3
commit e428b35654

View File

@ -15,6 +15,10 @@ for filename in os.listdir('./commands'):
print(filename) print(filename)
client.load_extension(f'commands.{filename[:-3]}') client.load_extension(f'commands.{filename[:-3]}')
for filename in os.listdir("./events"):
if filename.endswith('.py'):
client.load_extension(f'events.{filename[:-3]}')
# ______ _ _ # ______ _ _
# | ____| | | (_) # | ____| | | (_)
# | |__ __ _____ ___ _ _| |_ _ _ __ __ _ # | |__ __ _____ ___ _ _| |_ _ _ __ __ _