Commits

WaveHack  committed 06a1c4d

Fixed !youtube search because Edoxile doesn't know how 2 Google.

  • Participants
  • Parent commits 854020b

Comments (0)

Files changed (1)

File modules/google.pm

 	return unless ($message->{body} =~ /^!y(?:outube)? (.+)/);
 
 	my $searchTerm = $1;
-	my $search = Google::Search->Image(query => 'link:youtube.com ' . $searchTerm, hl => 'nl');
+	my $search = Google::Search->Image(query => 'site:youtube.com ' . $searchTerm, hl => 'nl');
 	my $result = $search->first;
 
 	unless (defined($result)) {