Created my first Goodie

master
FantomskaFirma 2014-12-11 09:17:04 +00:00
parent a127fa566b
commit a42ec21244
4 changed files with 43 additions and 44 deletions

View File

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

View File

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

View File

@ -1,19 +0,0 @@
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use DDG::Test::Goodie;
zci answer_type => "is_awesome_fantomska_firma";
zci is_cached => 1;
ddg_goodie_test(
[qw(
DDG::Goodie::IsAwesome::FantomskaFirma
)],
'duckduckhack FantomskaFirma' => test_zci('FantomskaFirma is hacking this search result!'),
'duckduckhack GitHubUsername is awesome' => undef,
);
done_testing;

View File

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