forked from duckduckgo/zeroclickinfo-goodies
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request duckduckgo#1223 from gokul1794/firstgoodie
goodie tutorial
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package DDG::Goodie::IsAwesome::gokul1794; | ||
# ABSTRACT: gokul1794's first goodie | ||
|
||
use DDG::Goodie; | ||
use strict; | ||
|
||
zci answer_type => "is_awesome_gokul1794"; | ||
zci is_cached => 1; | ||
|
||
name "IsAwesome gokul1794"; | ||
description "Not my first goodie, but let the world know that gokul1794 is awesome"; | ||
primary_example_queries "duckduckhack gokul1794"; | ||
category "special"; | ||
topics "special_interest", "geek"; | ||
code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/IsAwesome/gokul1794.pm"; | ||
attribution github => ["https://github.com/gokul1794", "gokul1794"], | ||
twitter => "gokul_shanth"; | ||
|
||
triggers start => "duckduckhack gokul1794"; | ||
|
||
handle remainder => sub { | ||
return if $_; | ||
return "gokul1794 is awesome and has successfully completed the DuckDuckHack Goodie tutorial!"; | ||
}; | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env perl | ||
|
||
use strict; | ||
use warnings; | ||
use Test::More; | ||
use DDG::Test::Goodie; | ||
|
||
zci answer_type => "is_awesome_gjskha"; | ||
zci is_cached => 1; | ||
|
||
ddg_goodie_test( | ||
[qw( | ||
DDG::Goodie::IsAwesome::gjskha | ||
)], | ||
'duckduckhack gokul1794' => test_zci('gokul1794 is awesome and has successfully completed the DuckDuckHack Goodie tutorial!'), | ||
'duckduckhack gokul1794 is awesome' => undef, | ||
); | ||
done_testing; |