Event cogs import fixed
This commit is contained in:
parent
0c776039b3
commit
e428b35654
4
main.py
4
main.py
@ -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]}')
|
||||||
|
|
||||||
# ______ _ _
|
# ______ _ _
|
||||||
# | ____| | | (_)
|
# | ____| | | (_)
|
||||||
# | |__ __ _____ ___ _ _| |_ _ _ __ __ _
|
# | |__ __ _____ ___ _ _| |_ _ _ __ __ _
|
||||||
|
Loading…
x
Reference in New Issue
Block a user