Created my first Goodie

master
mogigoma 2014-12-20 19:19:37 +00:00
parent fe6304c78f
commit ba98790dd4
2 changed files with 44 additions and 0 deletions

View File

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

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