Created my first googied

master
valcrist73 2015-04-15 05:09:15 +00:00
parent 253b553b49
commit 8c55b33102
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,25 @@
package DDG::Goodie::IsAwesome::valcrist73;
# ABSTRACT: valcrist73's first goodie
use DDG::Goodie;
zci answer_type => "is_awesome_valcrist73";
zci is_cached => 1;
name "IsAwesome valcrist73";
description "My first Goodie, it lets the world know that valcrist73 is awesome";
primary_example_queries "duckduckhack GitHubUsername";
category "special";
topics "special_interest", "geek";
code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/IsAwesome/valcrist73.pm";
attribution github => ["valcrist73", "Jonathan"],
=> ["valcrist73@gmail.com", "valcrist73 at gmail.com"];
triggers start => "duckduckhack valcrist73";
handle remainder => sub {
return if $_;
return "Valcrist73 is awesome and has successfully completed the DuckDuckHack Goodie tutorial! - Valcrist73 es genial y ha completado exitosamente el tutorial DuckDuckHack Goodie!";
};
1;

19
t/IsAwesome/valcrist73.t Normal file
View File

@ -0,0 +1,19 @@
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use DDG::Test::Goodie;
zci answer_type => "is_awesome_valcrist73";
zci is_cached => 1;
ddg_goodie_test(
[qw(
DDG::Goodie::IsAwesome::valcrist73
)],
'duckduckhack valcrist73' => test_zci('Valcrist73 is awesome and has successfully completed the DuckDuckHack Goodie tutorial! - Valcrist73 es genial y ha completado exitosamente el tutorial DuckDuckHack Goodie!'),
'duckduckhack valcrist73 is awesome' => undef,
);
done_testing;