Created my IsAwesome Goodie...

master
murz 2015-02-14 00:15:19 +00:00
parent 366b89afce
commit 0b0c8cece2
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,29 @@
package DDG::Goodie::IsAwesome::murz;
# ABSTRACT: Write an abstract here
# Start at https://duck.co/duckduckhack/goodie_overview if you are new
# to instant answer development
use DDG::Goodie;
zci answer_type => "is_awesome_murz";
zci is_cached => 1;
# Metadata. See https://duck.co/duckduckhack/metadata for help in filling out this section.
name "IsAwesome murz";
description "My first Goodie, it lets the world know that murz is awesome";
primary_example_queries "duckduckhack murz";
category "special";
topics "special_interest", "geek";
code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/IsAwesome/murz.pm";
attribution github => ["GitHubAccount", "murz"];
# Triggers
triggers start => "duckduckhack murz";
# Handle statement
handle remainder => sub {
return if $_;
return "murz is awesome and has successfully completed the DuckDuckHack Goodie tutorial!";
};
1;

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