forked from GitHub/dbot
Merge branch 'master' of github.com:reality/depressionbot
This commit is contained in:
commit
f5fbb487a4
@ -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 {
|
||||||
|
@ -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.');
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user