fix: limit 2 level to only 5 children

This commit is contained in:
wancat committed 2023-08-21 20:40:05 +08:00
1 parent 34d5ace664
commit f43fa1b5ef
3 files changed
+24 -22

No files matched your search

-1
View File
@@ -19,7 +19,6 @@ const commandListeners = {
async function handleCommand(command) {
const argv = minimist(command.split(' '))
console.log(argv)
const name = argv._[0]
const listeners = commandListeners[name]
if (!listeners) return {}