mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
youare doesnt need snippets [#135]
This commit is contained in:
parent
1e52809e06
commit
6dfa5de478
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user