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,8 +4,10 @@ var js = function(dbot) {
var commands = { var commands = {
'~js': function(data, params) { '~js': function(data, params) {
var q = data.message.valMatch(/^~js (.*)/, 2); var q = data.message.valMatch(/^~js (.*)/, 2);
if(data.user == dbot.admin) {
dbot.say(data.channel, eval(q[1])); dbot.say(data.channel, eval(q[1]));
} }
}
}; };
return { return {

View File

@ -17,6 +17,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) { '~qsearch': function(data, params) {
if(params[2] === undefined) { if(params[2] === undefined) {
dbot.say(data.channel, 'Next time provide a search parameter. Commence incineration.'); dbot.say(data.channel, 'Next time provide a search parameter. Commence incineration.');

View File

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