How can I change the command handler to look through folders inside the commands folder for command files?

前端 未结 0 932
不思量自难忘°
不思量自难忘° 2020-12-21 06:59

for (const file of commandFiles) { const command = require(./commands/${file}); client.commands.set(command.name, command); } client.on(\'message\', message =&g

相关标签:
回答
  • 消灭零回复
提交回复
热议问题