Created my first Goodie!

master
ngzhian 2015-04-04 17:17:55 +00:00
parent 957c4ddda6
commit a07b14688c
2 changed files with 42 additions and 0 deletions

View File

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

17
t/IsAwesome/ngzhian.t Normal file
View File

@ -0,0 +1,17 @@
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use DDG::Test::Goodie;
zci answer_type => "is_awesome_ngzhian";
zci is_cached => 1;
ddg_goodie_test(
[qw( DDG::Goodie::IsAwesome::ngzhian )],
'duckduckhack ngzhian' => test_zci('ngzhian is awesome and has successfully completed the DuckDuckHack Goodie tutorial!'),
'duckduckhack ngzhian is awesome' => undef,
);
done_testing;