/lib/DDG/Spice/Mtg.pm
Perl | 27 lines | 19 code | 7 blank | 1 comment | 1 complexity | 8c9c78329c4572c32af6b5d5b30cc592 MD5 | raw file
Possible License(s): Apache-2.0
- package DDG::Spice::Mtg;
- # ABSTRACT: Information on 'Magic The Gathering' cards
- use strict;
- use DDG::Spice;
- name "Mtg Card Search";
- description "Returns information about Magic The Gathering Cards";
- primary_example_queries "mtg nullify", "mtg Boros Reckoner";
- category "entertainment";
- topics "entertainment", "gaming";
- code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/mtg/lib/DDG/Spice/Mtg.pm";
- attribution github => ["https://github.com/puskin94", "puskin"];
- triggers start => 'mtg', 'magic card', 'magic cards', 'magic the gathering';
- spice to => 'http://api.mtgdb.info/cards/$1';
- spice wrap_jsonp_callback => 1;
- handle remainder => sub {
- $_ =~ s/\://;
- return $_ if $_;
- return;
- };
- 1;