Created my first Goodie
parent
dea345fef0
commit
5532729143
|
@ -0,0 +1,26 @@
|
|||
package DDG::Goodie::IsAwesome::stefolof;
|
||||
# ABSTRACT: stefolof's first Goodie
|
||||
|
||||
use DDG::Goodie;
|
||||
|
||||
zci answer_type => "is_awesome_stefolof";
|
||||
zci is_cached => 1;
|
||||
|
||||
name "IsAwesome stefolof";
|
||||
description "My first Goodie, it let's the world know that stefolof is awesome";
|
||||
primary_example_queries "duckduckhack stefolof";
|
||||
category "special";
|
||||
topics "special_interest", "geek";
|
||||
code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/IsAwesome/stefolof.pm";
|
||||
attribution github => ["https://github.com/stefolof", "stefolof"],
|
||||
twitter => "stefolof";
|
||||
|
||||
triggers start => "duckduckhack stefolof";
|
||||
|
||||
handle remainder => sub {
|
||||
return if $_;
|
||||
return "stefolof is awesome and has successfully completed the DuckDuckHack Goodie tutorial!";
|
||||
|
||||
};
|
||||
|
||||
1;
|
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/env perl
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Test::More;
|
||||
use DDG::Test::Goodie;
|
||||
|
||||
zci answer_type => "is_awesome_stefolof";
|
||||
zci is_cached => 1;
|
||||
|
||||
ddg_goodie_test(
|
||||
[qw(
|
||||
DDG::Goodie::IsAwesome::stefolof
|
||||
)],
|
||||
|
||||
'duckduckhack stefolof' => test_zci('stefolof is awesome and has successfully completed the DuckDuckHack Goodie tutorial!'),
|
||||
'duckduckhack stefolof is awesome' => undef,
|
||||
);
|
||||
|
||||
done_testing;
|
Loading…
Reference in New Issue