diff --git a/server/handler/app.js b/server/handler/app.js index dba51be..a10fde1 100644 --- a/server/handler/app.js +++ b/server/handler/app.js @@ -67,6 +67,12 @@ module.exports = (io, socket) => { if (msg?.data[key] !== value) return; } + if (item.replace) { + Object.keys(item.replace).map((key) => { + item.command = item.command.replace(new RegExp(`{${key}}`, "g"), item.replace[key]()); + }); + } + queue.push({...item, step: index+1}); if (item.description)