fix regex and make source url different for every recipe
parent
140ea74672
commit
557fb3fcf0
|
@ -46,6 +46,7 @@ handle remainder => sub {
|
||||||
# Recipe found, let's return an answer.
|
# Recipe found, let's return an answer.
|
||||||
my $plaintext = 'Minecraft ' . $recipe->{'name'} . ' ingredients: ' . $recipe->{'ingredients'} . '.';
|
my $plaintext = 'Minecraft ' . $recipe->{'name'} . ' ingredients: ' . $recipe->{'ingredients'} . '.';
|
||||||
|
|
||||||
|
|
||||||
return $plaintext,
|
return $plaintext,
|
||||||
structured_answer => {
|
structured_answer => {
|
||||||
data => {
|
data => {
|
||||||
|
@ -57,7 +58,7 @@ handle remainder => sub {
|
||||||
},
|
},
|
||||||
meta => {
|
meta => {
|
||||||
sourceName => "Minecraft Wiki",
|
sourceName => "Minecraft Wiki",
|
||||||
sourceUrl => "http://minecraft.gamepedia.com/Crafting#Complete_recipe_list"
|
sourceUrl => "http://minecraft.gamepedia.com/" . uri_esc( $recipe->{'name'} ) #testing
|
||||||
},
|
},
|
||||||
templates => {
|
templates => {
|
||||||
group => 'info',
|
group => 'info',
|
||||||
|
|
|
@ -827,7 +827,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Stained Glass",
|
"name": "Stained Glass",
|
||||||
"regex": "(?:(colored|white|orange|magenta|light ?blue|yellow|lime|pink|gray|light ?gray|cyan|purple|blue|brown|green|red|black) ?stained ?glass(es)?)",
|
"regex": "(?:(colored|white|orange|magenta|light ?blue|yellow|lime|pink|gray|light ?gray|cyan|purple|blue|brown|green|red|black) ?(stained)? ?glass(es)?)",
|
||||||
"image": "http://www.minecraftxl.com/images/wiki/recipes/stained-glass-crafting.gif",
|
"image": "http://www.minecraftxl.com/images/wiki/recipes/stained-glass-crafting.gif",
|
||||||
"ingredients": "8 Glass + 1 Dye",
|
"ingredients": "8 Glass + 1 Dye",
|
||||||
"description": "Stained Glass is the dyed version of regular glass that can be used for decoration purposes."
|
"description": "Stained Glass is the dyed version of regular glass that can be used for decoration purposes."
|
||||||
|
|
Loading…
Reference in New Issue