Created my first Goodie
parent
4f4b32b1e0
commit
15492717aa
|
@ -0,0 +1,25 @@
|
|||
package DDG::Goodie::IsAwesome::19kestier;
|
||||
# ABSTRACT: 19kestier's first Goodie
|
||||
|
||||
use DDG::Goodie;
|
||||
|
||||
zci answer_type => "is_awesome_19kestier";
|
||||
zci is_cached => 1;
|
||||
|
||||
name "IsAwesome 19kestier";
|
||||
description "My first Goodie, it let's the world know that 19kestier is awesome";
|
||||
primary_example_queries "duckduckhack 19kestier";
|
||||
category "special";
|
||||
topics "special_interest", "geek";
|
||||
code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/IsAwesome/19kestier.pm";
|
||||
attribution github => ["https://github.com/19kestier", "19kestier"],
|
||||
twitter => "kestier19";
|
||||
|
||||
triggers start => "duckduckhack 19kestier";
|
||||
|
||||
handle remainder => sub {
|
||||
return if $_;
|
||||
return "19kestier 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_19kestier";
|
||||
zci is_cached => 1;
|
||||
|
||||
ddg_goodie_test(
|
||||
[qw(
|
||||
DDG::Goodie::IsAwesome::19kestier
|
||||
)],
|
||||
'duckduckhack 19kestier' => test_zci('19kestier is awesome and has successfully completed the DuckDuckHack Goodie tutorial!'),
|
||||
'duckduckhack 19kestier is awesome' => undef,
|
||||
);
|
||||
|
||||
done_testing;
|
Loading…
Reference in New Issue