Created my first Goodie

master
aseemraj 2015-01-30 19:38:54 +00:00
parent f7b95f2d81
commit 1eb9e8253a
2 changed files with 46 additions and 0 deletions

View File

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

19
t/IsAwesome/aseemraj.t Normal file
View File

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