Created my first Goodie

master
domjacko 2015-05-23 15:52:37 +00:00
parent c21c55156d
commit 9ca4b4ef1e
2 changed files with 45 additions and 0 deletions

View File

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

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