Added the replace parameter to the app.js
This commit is contained in:
parent
fca4b373a2
commit
36f3be0385
@ -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)
|
||||
|
Reference in New Issue
Block a user