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
|
|
|
|
2015-02-22 12:09:29 -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';
|
2014-09-27 06:42:57 -07:00
|
|
|
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'],
|
2015-01-09 00:09:45 -08:00
|
|
|
operation => 'Code phrase',
|
2014-10-07 02:12:00 -07:00
|
|
|
result => $answer
|
|
|
|
};
|
2014-08-19 05:55:10 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
1;
|