mirror of
https://github.com/reality/dbot.git
synced 2024-12-24 19:52:36 +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 = {
|
||||
'~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]));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user