youare doesnt need snippets [#135]

This commit is contained in:
reality 2013-05-17 17:04:19 +00:00
parent 1e52809e06
commit 6dfa5de478

View File

@ -2,7 +2,7 @@ var youAre = function(dbot) {
this.listener = function(event) { this.listener = function(event) {
var key = event.message.valMatch(/(\bis\b|\bare\b)\s+([\w\s\d]*?)(\s+)?(,|\.|\band\b|$)/, 5); var key = event.message.valMatch(/(\bis\b|\bare\b)\s+([\w\s\d]*?)(\s+)?(,|\.|\band\b|$)/, 5);
if(key && key[2] != "" && Number.prototype.chanceIn(1, 100) && event.user != 'aisbot') { if(key && key[2] != "" && (Math.floor(Math.random() * (101)) / 1) == 1) {
event.reply(event.user + ': You\'re ' + key[2] + '.'); event.reply(event.user + ': You\'re ' + key[2] + '.');
} }
}.bind(this); }.bind(this);