Created my first Goodie

master
TheAdamGalloway 2015-01-02 03:26:44 +00:00
parent 044a259b64
commit f0c016de09
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,26 @@
package DDG::Goodie::IsAwesome::TheAdamGalloway;
# ABSTRACT: TheAdamGalloway's first Goodie
use DDG::Goodie;
zci answer_type => "is_awesome_the_adam_galloway";
zci is_cached => 1;
name "IsAwesome TheAdamGalloway";
description "My first Goodie, it lets the world know that TheAdamGalloway is awesome";
primary_example_queries "duckduckhack TheAdamGalloway";
category "special";
topics "special_interest", "geek";
code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/IsAwesome/TheAdamGalloway.pm";
attribution github => ["https://github.com/TheAdamGalloway", "TheAdamGalloway"],
twitter => "TheAdamGalloway",
web => ['http://www.adamgalloway.me/'];
triggers start => "duckduckhack theadamgalloway";
handle remainder => sub {
return if $_;
return "TheAdamGalloway is awesome and has successfully completed the DuckDuckHack Goodie tutorial!";
};
1;

View File

@ -0,0 +1,17 @@
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use DDG::Test::Goodie;
zci answer_type => "is_awesome_the_adam_galloway";
zci is_cached => 1;
ddg_goodie_test(
[qw( DDG::Goodie::IsAwesome::TheAdamGalloway )],
'duckduckhack TheAdamGalloway' => test_zci('TheAdamGalloway is awesome and has successfully completed the DuckDuckHack Goodie tutorial!'),
'duckduckhack TheAdamGalloway is awesome' => undef,
);
done_testing;