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

this thing

This commit is contained in:
reality 2013-08-24 13:30:17 +00:00
parent 7eec11197a
commit 4f4cdea951

View File

@ -155,7 +155,7 @@ var imgur = function(dbot) {
'~ri': function(event) { '~ri': function(event) {
var local = event.user; var local = event.user;
if(event.params[1]) { if(event.params[1]) {
local = event.params.splice(0, 1).join(' '); local = event.params.splice(1, event.params.length - 1).join(' ');
} }
this.api.getRandomImage(function(link, slug) { this.api.getRandomImage(function(link, slug) {
this.api.getImageInfo(slug, function(imgData) { this.api.getImageInfo(slug, function(imgData) {