Add custom variables to custom message feature
This commit is contained in:
parent
67f674c92b
commit
9bb9effaf7
3 changed files with 30 additions and 2 deletions
|
@ -27,7 +27,8 @@ module.exports = function(client, owners, message, globalPrefix){
|
|||
let customCommands = JSON.parse(json)
|
||||
customCommands.forEach(function (customCommand) {
|
||||
if (customCommand.customName === commandName) {
|
||||
message.channel.send(customCommand.customMessage)
|
||||
let customMessage = customReplaceWithVariables(customCommand.customMessage, message, prefix, globalPrefix)
|
||||
message.channel.send(customMessage)
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue