created my first Goodie, so excited
parent
fe6304c78f
commit
108384e8b4
|
@ -0,0 +1,31 @@
|
|||
package DDG::Goodie::IsAwesome::muj;
|
||||
# ABSTRACT: muj'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_muj";
|
||||
zci is_cached => 1;
|
||||
|
||||
# Metadata. See https://duck.co/duckduckhack/metadata for help in filling out this section.
|
||||
name "IsAwesome muj";
|
||||
description "My first Goodie, it lets the world know that muj is awesome!";
|
||||
primary_example_queries "duckduckhack muj";
|
||||
# Uncomment and complete: https://duck.co/duckduckhack/metadata#category
|
||||
category "special";
|
||||
# Uncomment and complete: https://duck.co/duckduckhack/metadata#topics
|
||||
topics "special_interest", "geek";
|
||||
code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/IsAwesome/muj.pm";
|
||||
attribution github => ["https://github.com/muj", "Mujtaba Arshad"];
|
||||
|
||||
# Triggers
|
||||
triggers start => "duckduckhack muj";
|
||||
|
||||
# Handle statement
|
||||
handle remainder => sub {
|
||||
return if$_;
|
||||
return "muj is awesome and has successfully completed the DuckDuckHack Goodie tutorial!";
|
||||
};
|
||||
|
||||
1;
|
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env perl
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Test::More;
|
||||
use DDG::Test::Goodie;
|
||||
|
||||
zci answer_type => "is_awesome_muj";
|
||||
zci is_cached => 1;
|
||||
|
||||
ddg_goodie_test(
|
||||
[qw(
|
||||
DDG::Goodie::IsAwesome::muj
|
||||
)],
|
||||
'duckduckhack muj' => test_zci('muj is awesome and has successfully completed the DuckDuckHack Goodie tutorial!'),
|
||||
'duckduckhack muj is awesome' => undef,
|
||||
);
|
||||
|
||||
done_testing;
|
Loading…
Reference in New Issue