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