mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 04:02:39 +01:00
remove = from flashy regex since all colours are one word anyway
This commit is contained in:
parent
b038ecf63f
commit
6638dec85a
@ -18,7 +18,7 @@ var flashy = function(dbot) {
|
|||||||
|
|
||||||
this.commands = {
|
this.commands = {
|
||||||
'~flashy': function(event) {
|
'~flashy': function(event) {
|
||||||
var colour = event.input[1].trim();
|
var colour = event.input[1];
|
||||||
var text = event.input[2].trim().toUpperCase();
|
var text = event.input[2].trim().toUpperCase();
|
||||||
|
|
||||||
if(_.has(this.colourMap, colour)) {
|
if(_.has(this.colourMap, colour)) {
|
||||||
@ -34,7 +34,7 @@ var flashy = function(dbot) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.commands['~flashy'].regex = [/^~flashy ([\d\w-]+[\d\w\s-]*)[ ]?=[ ]?(.+)$/, 3];
|
this.commands['~flashy'].regex = [/^~flashy ([^ ]+) (.+)$/, 3];
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.fetch = function(dbot) {
|
exports.fetch = function(dbot) {
|
||||||
|
Loading…
Reference in New Issue
Block a user