german pokedex
This commit is contained in:
parent
952271851e
commit
759a54a93b
@ -6,13 +6,14 @@ local function get_pokemon(query)
|
|||||||
local pokemon = json:decode(b)
|
local pokemon = json:decode(b)
|
||||||
|
|
||||||
if pokemon == nil then
|
if pokemon == nil then
|
||||||
return 'No pokémon found.'
|
return 'Kein Pokemon gefunden.'
|
||||||
end
|
end
|
||||||
return 'Pokédex ID: ' .. pokemon.pkdx_id .. '\n'
|
return 'Pokédex ID: ' .. pokemon.pkdx_id .. '\n'
|
||||||
..'Name: ' .. pokemon.name .. '\n'
|
..'Name: ' .. pokemon.name .. '\n'
|
||||||
..'Weight: ' .. pokemon.weight .. '\n'
|
..'Gewicht: ' .. pokemon.weight .. '\n'
|
||||||
..'Height: ' .. pokemon.height .. '\n'
|
..'Größe: ' .. pokemon.height .. '\n'
|
||||||
..'Speed: ' .. pokemon.speed .. '\n'
|
..'Speed: ' .. pokemon.speed .. '\n'
|
||||||
|
..'Spezies: ' .. pokemon.species .. '\n'
|
||||||
end
|
end
|
||||||
|
|
||||||
local function run(msg, matches)
|
local function run(msg, matches)
|
||||||
@ -20,8 +21,8 @@ local function run(msg, matches)
|
|||||||
end
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
description = "Pokedex searcher for Telegram",
|
description = "Pokedex für Telegram",
|
||||||
usage = "/pokedex [Name/ID]: Search the pokédex for Name/ID and get info of the pokémon!",
|
usage = "/pokedex [Name/ID]",
|
||||||
patterns = {"^/pokedex (.*)$"},
|
patterns = {"^/pokedex (.*)$"},
|
||||||
run = run
|
run = run
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user