You're putting the wrong path in load_extension
. You should pass the same path as in os.listdir
for filename in os.listdir('libcommands'):
if filename.endswith('.py'):
client.load_extension(f'lib.commands.{filename[:-3]}')
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…