Closed ghost closed 11 years ago
You need to probably do a regex to look for the name and then you can respond with any text you like.
How do I code the regex.
Regex: http://bit.ly/11H50sg
ok, but that doesn't help. I was thinking of a coding example.
here's simple example
bot.on('speak', function(data))
{
if(data.text.match(/your bots name here/i))
{
bot.speak('say something');
}
});
OK, Thanks for the help. You solved my problem.
How do you make the bot talk in the chat room when someone mentions his name?