I am using this code to DM users based on keywords, and need to open it up to recognizing the trigger text in a message, and not just DMing when the message is only the trigger text
module.exports = (client, triggerText, replyText) => {
client.on('message', message => {
if (message.content.toLowerCase() === triggerText.toLowerCase()){
message.author.send(replyText)
}
})
}