mirror of
https://github.com/reality/dbot.git
synced 2024-11-24 04:49:25 +01:00
lolsnowtest
This commit is contained in:
parent
365ef7d5fc
commit
81eb8ebeac
@ -108,6 +108,10 @@ var quotes = function(dbot) {
|
|||||||
addStack.push(q[1]);
|
addStack.push(q[1]);
|
||||||
rmAllowed = true;
|
rmAllowed = true;
|
||||||
dbot.say(data.channel, 'Quote saved in \'' + q[1] + '\' (' + quotes[key].length + ')');
|
dbot.say(data.channel, 'Quote saved in \'' + q[1] + '\' (' + quotes[key].length + ')');
|
||||||
|
|
||||||
|
if(data.channel == 'reality') {
|
||||||
|
dbot.say('#realitest', 'Public Service Announcement: Snow added \'' + q[1] + '\' to ' + key + ' in PM');
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
dbot.say(data.channel, 'Invalid syntax. Initiate incineration.');
|
dbot.say(data.channel, 'Invalid syntax. Initiate incineration.');
|
||||||
}
|
}
|
||||||
|
@ -4,8 +4,8 @@ var spelling = function(dbot) {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
'listener': function(data, params) {
|
'listener': function(data, params) {
|
||||||
var q = data.message.valMatch(/^\*\*?([\d\w\s]*)$/, 2);
|
var q = data.message.valMatch(/^\([\d\w\s]*: )?*\*?([\d\w\s]*)$/, 2);
|
||||||
var otherQ = data.message.valMatch(/^([\d\w\s]*): \*\*?([\d\w\s]*)$/, 3);
|
var otherQ = data.message.valMatch(/^ \*\*?([\d\w\s]*)$/, 3);
|
||||||
if(q) {
|
if(q) {
|
||||||
var correction = q[1];
|
var correction = q[1];
|
||||||
var candidates = last[data.channel][data.user].split(' ');
|
var candidates = last[data.channel][data.user].split(' ');
|
||||||
|
Loading…
Reference in New Issue
Block a user