1

Compare commits

..

2 Commits

Author SHA1 Message Date
eleksir
f669186787 image.pm: use large thumbnail instead of real photo in imgur plugin 2021-03-02 01:36:54 +03:00
eleksir
1991edc803 botlib.pm: forgot that rabbit() should be explicitly imported 2021-03-01 02:39:00 +03:00
2 changed files with 3 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ use archeologist qw (dig);
use fisher qw (fish);
use fortune qw (fortune);
use friday qw (friday);
use image qw (kitty fox oboobs obutts);
use image qw (kitty fox oboobs obutts rabbit);
use karma qw (karmaSet karmaGet);
use lat qw (latAnswer);
use util qw (trim);

View File

@@ -311,6 +311,8 @@ sub rabbit {
);
my $rabbit = imgur ($terms[irand ($#terms + 1)]);
# return just large thumbnail instead of real photo (that can be really huge)
$rabbit = sprintf '%sl%s', substr ($rabbit, 0, -4), substr ($rabbit, -4);
if (defined $rabbit) {
return sprintf '[(\_/)](%s)', $rabbit;