mirror of
https://github.com/reality/dbot.git
synced 2025-01-12 13:12:41 +01:00
or is it that
This commit is contained in:
parent
d31a95b3a3
commit
71632f401b
@ -19,9 +19,9 @@ var vitetris = function(dbot) {
|
|||||||
var match = msg.match(/([^ ]+) vs\. ([^ ]+) (\d)-(\d)/);
|
var match = msg.match(/([^ ]+) vs\. ([^ ]+) (\d)-(\d)/);
|
||||||
if(match) {
|
if(match) {
|
||||||
if(match[3] > match[4]) {
|
if(match[3] > match[4]) {
|
||||||
dbot.say(this.config.streamServer, this.config.streamChannel, match[1] + ' beat ' + match[2] + ' at tetris ('+match[4] + '-'+match[3]+')');
|
dbot.say(this.config.streamServer, this.config.streamChannel, match[1] + ' beat ' + match[2] + ' at tetris ('+match[3] + '-'+match[4]+')');
|
||||||
} else {
|
} else {
|
||||||
dbot.say(this.config.streamServer, this.config.streamChannel, match[2] + ' beat ' + match[1] + ' at tetris ('+match[3] + '-'+match[4]+')');
|
dbot.say(this.config.streamServer, this.config.streamChannel, match[2] + ' beat ' + match[1] + ' at tetris ('+match[4] + '-'+match[3]+')');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
Loading…
Reference in New Issue
Block a user