zeroclickinfo-goodies/lib/DDG/Goodie/ValarMorghulis.pm

36 lines
923 B
Perl
Raw Normal View History

2014-08-19 05:55:10 -07:00
package DDG::Goodie::ValarMorghulis;
# ABSTRACT: A Game of Thrones / A Song of Ice and Fire easter egg.
2014-11-05 12:33:49 -08:00
use strict;
2014-11-05 12:22:44 -08:00
use utf8;
2014-08-19 05:55:10 -07:00
use DDG::Goodie;
triggers start => 'valar morghulis';
primary_example_queries 'valar morghulis';
name 'Valar Morghulis';
description 'Game of Thrones / A Song of Ice and Fire easter egg.';
category 'special';
topics 'geek';
code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/ValarMorghulis.pm';
2014-10-07 02:12:00 -07:00
attribution web => ['http://engvik.nu', 'Lars Jansøn Engvik'],
github => ['larseng', 'Lars Jansøn Engvik'];
2014-08-19 05:55:10 -07:00
2014-10-07 02:12:00 -07:00
zci answer_type => 'valar_morghulis';
zci is_cached => 1;
2014-08-19 05:55:10 -07:00
handle remainder => sub {
2014-10-07 02:12:00 -07:00
return unless ($_ eq '');
my $answer = 'Valar dohaeris';
return $answer,
structured_answer => {
input => ['Valar morghulis'],
operation => 'Code phrase',
2014-10-07 02:12:00 -07:00
result => $answer
};
2014-08-19 05:55:10 -07:00
};
1;