Created my first Goodie

master
kakku55 2014-12-07 15:55:27 +00:00
parent 247bfbc57a
commit b6b2191837
2 changed files with 44 additions and 0 deletions

View File

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

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