Update goodie from review feedback
`use strict;` added -- I couln't find info on whether it had to be one line 1 or not, so I put it where @MrChrisW wrote a comment asking for it. changed description and user-facing text to be exactly what the tutorial told me to write.master
parent
34022af717
commit
31a7758fc7
|
@ -2,12 +2,13 @@ package DDG::Goodie::IsAwesome::uniphil;
|
||||||
# ABSTRACT: uniphil's first Goodie
|
# ABSTRACT: uniphil's first Goodie
|
||||||
|
|
||||||
use DDG::Goodie;
|
use DDG::Goodie;
|
||||||
|
use strict;
|
||||||
|
|
||||||
zci answer_type => "is_awesome_uniphil";
|
zci answer_type => "is_awesome_uniphil";
|
||||||
zci is_cached => 1;
|
zci is_cached => 1;
|
||||||
|
|
||||||
name "IsAwesome uniphil";
|
name "IsAwesome uniphil";
|
||||||
description "My first Goodie, like so many before, in hopes of having a search engine tell me I'm awesome";
|
description "My first Goodie, it lets the world know uniphil is awesome";
|
||||||
primary_example_queries "duckduckhack uniphil";
|
primary_example_queries "duckduckhack uniphil";
|
||||||
category "special";
|
category "special";
|
||||||
topics "special_interest", "geek";
|
topics "special_interest", "geek";
|
||||||
|
@ -19,7 +20,7 @@ triggers start => "duckduckhack uniphil";
|
||||||
|
|
||||||
handle remainder => sub {
|
handle remainder => sub {
|
||||||
return if $_;
|
return if $_;
|
||||||
return "uniphil is awesome I guess. They successfully completed the DuckDuckHack Goodie tutorial anyway."
|
return "uniphil is awesome and has successfully completed the DuckDuckHack Goodie tutorial!"
|
||||||
};
|
};
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
|
@ -12,7 +12,7 @@ ddg_goodie_test(
|
||||||
[qw(
|
[qw(
|
||||||
DDG::Goodie::IsAwesome::uniphil
|
DDG::Goodie::IsAwesome::uniphil
|
||||||
)],
|
)],
|
||||||
'duckduckhack uniphil' => test_zci('uniphil is awesome I guess. They successfully completed the DuckDuckHack Goodie tutorial anyway.'),
|
'duckduckhack uniphil' => test_zci('uniphil is awesome and has successfully completed the DuckDuckHack Goodie tutorial!'),
|
||||||
'duckduckhack uniphil is awesome' => undef,
|
'duckduckhack uniphil is awesome' => undef,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue