PageRenderTime 39ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/DDG/Spice/SteamDB.pm

https://github.com/robertbrook/zeroclickinfo-spice
Perl | 25 lines | 19 code | 6 blank | 0 comment | 1 complexity | 1eafc6a78ae6da49fd9ace81b6421e6a MD5 | raw file
  1. package DDG::Spice::SteamDB;
  2. use DDG::Spice;
  3. name "SteamDB";
  4. source "SteamDB";
  5. description "Get matching games from SteamDB";
  6. primary_example_queries "steamdb team fortress";
  7. category "special";
  8. topics "gaming";
  9. icon_url "/i/store.steampowered.com.ico";
  10. code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/SteamDB.pm";
  11. attribution github => ["https://github.com/xPaw", "xPaw"],
  12. twitter => ["https://twitter.com/thexpaw", "xPaw"];
  13. triggers startend => "steamdb", "steam game", "steam app", "steam appid", "steam games";
  14. spice to => 'http://steamdb.info/api/GetMetadata/?search=$1&jsonp={{callback}}';
  15. handle remainder => sub {
  16. return $_ if $_;
  17. return;
  18. };
  19. 1;