Created my first Goodie

master
rramyr 2015-04-05 02:13:23 +00:00
parent 7ab9683a79
commit df608837e9
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,27 @@
package DDG::Goodie::IsAwesome::GitHubrramyr;
# ABSTRACT: GitHubrramyr's first Goodie
# # Start at https://duck.co/duckduckhack/goodie_overview if you are new
# to instant answer development
use DDG::Goodie;
zci answer_type => "is_awesome_git_hubrramyr";
zci is_cached => 1;
name "IsAwesome GitHubrramyr";
description "My first Goodie, it lets the world know that GitHubUsername is awesome";
primary_example_queries "duckduckhack GitHubrramyr";
category "special";
topics "special_interest", "geek";
code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/IsAwesome/GitHubrramyr.pm";
attribution github => ["https://github.com/GitHubUsername", "GitHubrramyr"];
triggers any => "duckduckhack githubrramyr";
handle remainder => sub {
return if $_;
return "GitHubrramyr is awesome and has successfully completed the DuckDuckHack Goodie tutorial!";
};
1;

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