3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00

change ~film to ~imdb

This commit is contained in:
reality 2013-10-13 04:47:58 +00:00
parent 3dfa3be2e1
commit 439d25f9b0

View File

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