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