first goodie
parent
7789f7f10e
commit
c28009a6c1
|
@ -0,0 +1,26 @@
|
|||
package DDG::Goodie::IsAwesome::jimbrighter;
|
||||
# ABSTRACT: first Goodie
|
||||
|
||||
use DDG::Goodie;
|
||||
|
||||
zci answer_type => "is_awesome_jim-brighter";
|
||||
zci is_cached => 1;
|
||||
|
||||
name "IsAwesome jim-brighter";
|
||||
description "First Goodie, tells the world that jim-brighter is awesome";
|
||||
primary_example_queries "duckduckhack jimbrighter";
|
||||
category "special";
|
||||
topics "special_interest", "geek";
|
||||
code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/IsAwesome/jim-brighter.pm";
|
||||
attribution github => ["https://github.com/jim-brighter", "jim-brighter"],
|
||||
twitter => "jim_brighter";
|
||||
|
||||
triggers start => "duckduckhack jimbrighter";
|
||||
|
||||
handle remainder => sub {
|
||||
return if $_;
|
||||
return "jim-brighter is awesome and has successfully completed the DuckDuckHack Goodie tutorial!"; # Guard against "no answer"
|
||||
|
||||
};
|
||||
|
||||
1;
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env perl
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Test::More;
|
||||
use DDG::Test::Goodie;
|
||||
|
||||
zci answer_type => "is_awesome_jim-brighter";
|
||||
zci is_cached => 1;
|
||||
|
||||
ddg_goodie_test(
|
||||
[qw( DDG::Goodie::IsAwesome::jimbrighter )],
|
||||
'duckduckhack jimbrighter' => test_zci('jim-brighter is awesome and has successfully completed the DuckDuckHack Goodie tutorial!'),
|
||||
'duckduckhack jimbrighter is awesome' => undef,
|
||||
);
|
||||
|
||||
done_testing;
|
Loading…
Reference in New Issue