mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 20:22:39 +01:00
Merge branch 'master' of github.com:reality/depressionbot
This commit is contained in:
commit
f5fbb487a4
@ -4,7 +4,9 @@ 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);
|
||||||
dbot.say(data.channel, eval(q[1]));
|
if(data.user == dbot.admin) {
|
||||||
|
dbot.say(data.channel, eval(q[1]));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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