Closed ghost closed 10 years ago
Why not just do:
bot.on('pmmed', function (data)
{
var text = data.text; //text detected in the bots pm
if (text.match(/^awesome$/))
{
bot.vote('up');
}
}
Thanks, I hope it works.
How can I Code up a PM command that makes the bot awesome the current song that is playing. This is basically a PM version of the bop example. I want it to be based on this code: