Created my first Goodie

master
asarode 2014-11-26 10:39:55 +00:00
parent 68e7357d89
commit cabcbcdf52
2 changed files with 45 additions and 0 deletions

View File

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

19
t/IsAwesome/asarode.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_asarode";
zci is_cached => 1;
ddg_goodie_test(
[qw(
DDG::Goodie::IsAwesome::asarode
)],
'duckduckhack asarode' => test_zci('asarode is awesome and has successfully completed the DuckDuckHack Goodie tutorial!'),
'duckduckhack asarode is awesome' => undef,
);
done_testing;