Create my first goodie, woo
parent
65e28f400a
commit
34022af717
|
@ -0,0 +1,25 @@
|
|||
package DDG::Goodie::IsAwesome::uniphil;
|
||||
# ABSTRACT: uniphil's first Goodie
|
||||
|
||||
use DDG::Goodie;
|
||||
|
||||
zci answer_type => "is_awesome_uniphil";
|
||||
zci is_cached => 1;
|
||||
|
||||
name "IsAwesome uniphil";
|
||||
description "My first Goodie, like so many before, in hopes of having a search engine tell me I'm awesome";
|
||||
primary_example_queries "duckduckhack uniphil";
|
||||
category "special";
|
||||
topics "special_interest", "geek";
|
||||
code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/IsAwesome/uniphil.pm";
|
||||
attribution github => ["https://github.com/uniphil", "uniphil"],
|
||||
twitter => "unicyclephil";
|
||||
|
||||
triggers start => "duckduckhack uniphil";
|
||||
|
||||
handle remainder => sub {
|
||||
return if $_;
|
||||
return "uniphil is awesome I guess. They successfully completed the DuckDuckHack Goodie tutorial anyway."
|
||||
};
|
||||
|
||||
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_uniphil";
|
||||
zci is_cached => 1;
|
||||
|
||||
ddg_goodie_test(
|
||||
[qw(
|
||||
DDG::Goodie::IsAwesome::uniphil
|
||||
)],
|
||||
'duckduckhack uniphil' => test_zci('uniphil is awesome I guess. They successfully completed the DuckDuckHack Goodie tutorial anyway.'),
|
||||
'duckduckhack uniphil is awesome' => undef,
|
||||
);
|
||||
|
||||
done_testing;
|
Loading…
Reference in New Issue