Created my first Goodie :D

master
ilv 2015-02-25 05:02:41 +00:00
parent 675ddb306a
commit 4170fb6f2b
2 changed files with 43 additions and 0 deletions

View File

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

19
t/IsAwesome/ilv.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_ilv";
zci is_cached => 1;
ddg_goodie_test(
[qw(
DDG::Goodie::IsAwesome::ilv
)],
'duckduckhack ilv' => test_zci('ilv is awesome and has successfully completed the DuckDuckHack Goodie tutorial!'),
'duckduckhack ilv is awesome' => undef,
);
done_testing;