Kana: Converting to text template

master
Rob Emery 2016-05-16 13:10:29 +01:00
parent 0ca397ab70
commit b9fcf3f975
1 changed files with 9 additions and 6 deletions

View File

@ -85,12 +85,15 @@ handle query_lc => sub {
return unless $answer;
return "$text converted to $syll is $answer",
structured_answer => {
input => [$text],
operation => "Convert to ". ucfirst $syll,
result => $answer
};
return "$text converted to $syll is $answer", structured_answer => {
data => {
title => $answer,
subtitle => "Convert to ". ucfirst $syll. ": $text"
},
templates => {
group => 'text'
}
};
};
1;