mirror of
https://github.com/reality/dbot.git
synced 2024-12-24 19:52:36 +01:00
lolsnowtest
This commit is contained in:
parent
365ef7d5fc
commit
81eb8ebeac
@ -108,6 +108,10 @@ var quotes = function(dbot) {
|
||||
addStack.push(q[1]);
|
||||
rmAllowed = true;
|
||||
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 {
|
||||
dbot.say(data.channel, 'Invalid syntax. Initiate incineration.');
|
||||
}
|
||||
|
@ -4,8 +4,8 @@ var spelling = function(dbot) {
|
||||
|
||||
return {
|
||||
'listener': function(data, params) {
|
||||
var q = data.message.valMatch(/^\*\*?([\d\w\s]*)$/, 2);
|
||||
var otherQ = data.message.valMatch(/^([\d\w\s]*): \*\*?([\d\w\s]*)$/, 3);
|
||||
var q = data.message.valMatch(/^\([\d\w\s]*: )?*\*?([\d\w\s]*)$/, 2);
|
||||
var otherQ = data.message.valMatch(/^ \*\*?([\d\w\s]*)$/, 3);
|
||||
if(q) {
|
||||
var correction = q[1];
|
||||
var candidates = last[data.channel][data.user].split(' ');
|
||||
|
Loading…
Reference in New Issue
Block a user