This commit is contained in:
reality 2013-10-13 04:51:15 +00:00
parent 439d25f9b0
commit 3df467e35e

View File

@ -47,7 +47,7 @@ var imdb = function(dbot) {
}.bind(this)); }.bind(this));
} }
}; };
this.commands['~imdb'].regex = [/^~film (.+)$/, 2]; this.commands['~imdb'].regex = [/^~imdb (.+)$/, 2];
this.onLoad = function() { this.onLoad = function() {
dbot.api.link.addHandler('imdb', /https?:\/\/(www\.)?imdb\.com\/title\/([a-zA-Z0-9]+)/, function(matches, name, callback) { dbot.api.link.addHandler('imdb', /https?:\/\/(www\.)?imdb\.com\/title\/([a-zA-Z0-9]+)/, function(matches, name, callback) {