Add my first goodie.

master
francisbrito 2015-02-09 19:45:28 +00:00
parent a325762e64
commit 209b9accc2
2 changed files with 46 additions and 0 deletions

View File

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

View File

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