if we drop the love function in BotCommands.js. we can add this to RoomMessage.js and it should work as expected. :smile:
{ regex: /[^`@\\]l[ou]ve?\s(u|you|me)?,?\s?(cbot|@?camperbot)\b/i, func: function(input) { const fromUser = '@' + input.message.model.fromUser.username; return fromUser + ', :sparkles: :heart_eyes: :sparkles:'; }, }
probably needs the start fixed as well
{
regex: /^love/i,
func: BotCommands.love
}
:cookie: 453 | @noncentz | http://www.freecodecamp.com/noncentz