3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 19:52:36 +01:00

wrong order for tetris scores

This commit is contained in:
reality 2016-03-12 22:30:37 +00:00
parent fa431ac800
commit d31a95b3a3

View File

@ -19,7 +19,7 @@ var vitetris = function(dbot) {
var match = msg.match(/([^ ]+) vs\. ([^ ]+) (\d)-(\d)/);
if(match) {
if(match[3] > match[4]) {
dbot.say(this.config.streamServer, this.config.streamChannel, match[1] + ' beat ' + match[2] + ' at tetris ('+match[3] + '-'+match[4]+')');
dbot.say(this.config.streamServer, this.config.streamChannel, match[1] + ' beat ' + match[2] + ' at tetris ('+match[4] + '-'+match[3]+')');
} else {
dbot.say(this.config.streamServer, this.config.streamChannel, match[2] + ' beat ' + match[1] + ' at tetris ('+match[3] + '-'+match[4]+')');
}