diff --git a/lib/DDG/Goodie/IsAwesome/afelicioni.pm b/lib/DDG/Goodie/IsAwesome/afelicioni.pm new file mode 100644 index 000000000..f251ae4f7 --- /dev/null +++ b/lib/DDG/Goodie/IsAwesome/afelicioni.pm @@ -0,0 +1,25 @@ +package DDG::Goodie::IsAwesome::afelicioni; +# ABSTRACT: afelicioni's first Goodie + +use DDG::Goodie; + +zci answer_type => "is_awesome_afelicioni"; +zci is_cached => 1; + +name "IsAwesome afelicioni"; +description "My first Goodie, it lets the world know that afelicioni is awesome"; +primary_example_queries "duckduckhack afelicioni"; +category "special"; +topics "special_interest", "geek"; +code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/IsAwesome/afelicioni.pm"; +attribution github => ["https://github.com/afelicioni", "afelicioni"], + twitter => "afelicioni_pro"; + +triggers start => "duckduckhack afelicioni"; + +handle remainder => sub { + return if $_; + return "afelicioni is awesome and has successfully completed the DuckDuckHack Goodie tutorial!"; +}; + +1; diff --git a/t/IsAwesome/afelicioni.t b/t/IsAwesome/afelicioni.t new file mode 100644 index 000000000..e92d1a8bd --- /dev/null +++ b/t/IsAwesome/afelicioni.t @@ -0,0 +1,19 @@ +#!/usr/bin/env perl + +use strict; +use warnings; +use Test::More; +use DDG::Test::Goodie; + +zci answer_type => "is_awesome_afelicioni"; +zci is_cached => 1; + +ddg_goodie_test( + [qw( + DDG::Goodie::IsAwesome::afelicioni + )], + 'duckduckhack afelicioni' => test_zci('afelicioni is awesome and has successfully completed the DuckDuckHack Goodie tutorial!'), + 'duckduckhack afelicioni is awesome' => undef, +); + +done_testing;