2017-08-28 08:32:56 -07:00
|
|
|
package DDG::Goodie::HasLHCDestroyedWorld;
|
|
|
|
|
|
|
|
# ABSTRACT: Has the Large Hadron Collider destroyed the world yet? Nope.
|
|
|
|
|
|
|
|
use DDG::Goodie;
|
|
|
|
use strict;
|
|
|
|
|
|
|
|
zci answer_type => 'has_lhcdestroyed_world';
|
|
|
|
zci is_cached => 1;
|
|
|
|
|
2017-08-28 15:09:06 -07:00
|
|
|
triggers start => 'has the large hadron collider destroyed the world',
|
2017-08-28 08:32:56 -07:00
|
|
|
'has the lhc destroyed the world',
|
|
|
|
'has the large hadron collider destroyed the earth',
|
|
|
|
'has the lhc destroyed the earth';
|
|
|
|
|
|
|
|
# Handle statement
|
|
|
|
handle remainder => sub {
|
2017-08-28 15:09:06 -07:00
|
|
|
return unless /^(yet)?$/;
|
2017-08-28 08:32:56 -07:00
|
|
|
return "Nope.",
|
|
|
|
structured_answer => {
|
|
|
|
id => 'has_lhcdestroyed_world',
|
|
|
|
name => 'Answer',
|
|
|
|
data => {
|
|
|
|
title => "Has it?",
|
|
|
|
subtitle => "Nope."
|
|
|
|
},
|
|
|
|
meta => {
|
|
|
|
sourceName => "Has the Large Hadron Collider destroyed the world yet?",
|
|
|
|
sourceUrl => "http://hasthelargehadroncolliderdestroyedtheworldyet.com/"
|
|
|
|
},
|
|
|
|
templates => {
|
|
|
|
group => "text",
|
|
|
|
moreAt => 1
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
1;
|