Created my first Goodie

master
cap257zero 2014-11-24 20:18:06 +00:00
parent 767b071dd3
commit abcfd8377a
2 changed files with 43 additions and 0 deletions

View File

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

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