Change sendtext when adding custom command

This commit is contained in:
SileNce5k 2021-07-10 17:34:25 +02:00
parent 0627e2323f
commit 263576c671
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -18,7 +18,7 @@ module.exports = function(customName, customMessage, author){
"customName": customName, "customMessage": customMessage, "author": author "customName": customName, "customMessage": customMessage, "author": author
} }
customCommands.push(newCustomCommand) customCommands.push(newCustomCommand)
sendText = "New custom command has been added." sendText = `New custom command with the name "${customName}"`
} }
fs.writeFileSync(customPath, JSON.stringify(customCommands, null, 4)) fs.writeFileSync(customPath, JSON.stringify(customCommands, null, 4))
return sendText; return sendText;