Merge branch 'master' of github.com:reality/depressionbot

This commit is contained in:
Luke Slater 2011-12-25 10:41:13 +00:00
commit f5fbb487a4
3 changed files with 8 additions and 2 deletions

View File

@ -4,7 +4,9 @@ var js = function(dbot) {
var commands = {
'~js': function(data, params) {
var q = data.message.valMatch(/^~js (.*)/, 2);
dbot.say(data.channel, eval(q[1]));
if(data.user == dbot.admin) {
dbot.say(data.channel, eval(q[1]));
}
}
};

View File

@ -16,6 +16,10 @@ var quotes = function(dbot) {
}
}
},
'~fishpuns': function (data, params) {
dbot.say(data.channel, 'fishpuns: SHUT THE FUCK UP YOU FRESHER PIECES OF SHIT');
},
'~qsearch': function(data, params) {
if(params[2] === undefined) {

View File

@ -20,7 +20,7 @@ var spelling = function(dbot) {
}
}
if(winnerDistance < 3) {
if(winnerDistance < 7) {
if(winner !== correction) {
var fix = last[data.channel][data.user].replace(winner, correction);
last[data.channel][data.user] = fix;