/lib/DDG/Spice/GithubStatus.pm

https://github.com/pardocz/zeroclickinfo-spice · Perl · 26 lines · 18 code · 7 blank · 1 comment · 1 complexity · 0c841f0964952247291093b6050f4269 MD5 · raw file

  1. package DDG::Spice::GithubStatus;
  2. # ABSTRACT: Search for the current status of GitHub.
  3. use DDG::Spice;
  4. primary_example_queries "github status";
  5. description "Github status";
  6. name "Github Status";
  7. code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/GithubStatus.pm";
  8. topics "computing", "programming";
  9. category "programming";
  10. attribution github => ['https://github.com/Feral2k','Logan Garcia'],
  11. email => ['logangarcia@openmailbox.org','Logan Garcia'];
  12. triggers startend => 'github';
  13. spice to => 'https://status.github.com/api/last-message.json?callback={{callback}}';
  14. spice proxy_cache_valid => "418 1d";
  15. handle remainder => sub {
  16. return $_ if /^(system)?\s*status$/i;
  17. return;
  18. };
  19. 1;