Remove metadata from template
Remove some of the unnecessary checks in remaindermaster
parent
97c12acd8a
commit
05bbb7b4ca
|
@ -6,32 +6,15 @@ package DDG::Goodie::<: $ia_package_name :>;
|
|||
use DDG::Goodie;
|
||||
use strict;
|
||||
|
||||
zci answer_type => "<: $lia_name :>";
|
||||
zci answer_type => '<: $lia_name :>';
|
||||
zci is_cached => 1;
|
||||
|
||||
# Metadata. See https://duck.co/duckduckhack/metadata for help in filling out this section.
|
||||
name "<: $ia_name_separated :>";
|
||||
description "Succinct explanation of what this instant answer does";
|
||||
primary_example_queries "first example query", "second example query";
|
||||
secondary_example_queries "optional -- demonstrate any additional triggers";
|
||||
# Uncomment and complete: https://duck.co/duckduckhack/metadata#category
|
||||
# category "";
|
||||
# Uncomment and complete: https://duck.co/duckduckhack/metadata#topics
|
||||
# topics "";
|
||||
code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/<: $ia_path :>.pm";
|
||||
attribution github => ["GitHubAccount", "Friendly Name"],
|
||||
twitter => "twitterhandle";
|
||||
|
||||
# Triggers
|
||||
triggers any => "triggerWord", "trigger phrase";
|
||||
triggers any => 'triggerWord', 'trigger phrase';
|
||||
|
||||
# Handle statement
|
||||
handle remainder => sub {
|
||||
|
||||
# optional - regex guard
|
||||
# return unless qr/^\w+/;
|
||||
|
||||
return unless $_; # Guard against "no answer"
|
||||
# Query can be accessed in $_
|
||||
|
||||
return $_;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue