30 lines
599 B
Perl
30 lines
599 B
Perl
package DDG::Goodie::BeamMeUpScotty;
|
|
# ABSTRACT: A Star Trek catchphrase
|
|
|
|
use DDG::Goodie;
|
|
use strict;
|
|
|
|
zci answer_type => 'beam_me_up_scotty';
|
|
zci is_cached => 1;
|
|
|
|
triggers start => 'beam me up scotty', 'beam us up scotty';
|
|
|
|
handle remainder => sub {
|
|
return unless $_ eq '';
|
|
|
|
my $answer = 'Aye, aye, captain.';
|
|
|
|
return $answer,
|
|
structured_answer => {
|
|
data => {
|
|
title => $answer,
|
|
subtitle => 'Code phrase: Beam me up, Scotty',
|
|
},
|
|
templates => {
|
|
group => 'text',
|
|
},
|
|
};
|
|
};
|
|
|
|
1;
|