/lib/DDG/Spice/Expatistan.pm

http://github.com/duckduckgo/zeroclickinfo-spice · Perl · 16 lines · 10 code · 5 blank · 1 comment · 1 complexity · 1c4e256d1d06eabe43a11fe791afa702 MD5 · raw file

  1. package DDG::Spice::Expatistan;
  2. # ABSTRACT: Compare cities based on cost of living
  3. use strict;
  4. use DDG::Spice;
  5. triggers any => "cost of living";
  6. spice to => 'https://www.expatistan.com/api/spice?q=$1&api_key={{ENV{DDG_SPICE_EXPATISTAN_APIKEY}}}';
  7. handle query_lc => sub {
  8. return $_ if $_;
  9. return;
  10. };
  11. 1;