From 759a54a93b44344326a14296f3e51c235d9616c2 Mon Sep 17 00:00:00 2001 From: Akamaru Date: Sat, 23 May 2015 17:23:57 +0200 Subject: [PATCH] german pokedex --- plugins/pokedex.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/plugins/pokedex.lua b/plugins/pokedex.lua index c81d26e..f7ff5b5 100644 --- a/plugins/pokedex.lua +++ b/plugins/pokedex.lua @@ -6,13 +6,14 @@ local function get_pokemon(query) local pokemon = json:decode(b) if pokemon == nil then - return 'No pokémon found.' + return 'Kein Pokemon gefunden.' end return 'Pokédex ID: ' .. pokemon.pkdx_id .. '\n' ..'Name: ' .. pokemon.name .. '\n' - ..'Weight: ' .. pokemon.weight .. '\n' - ..'Height: ' .. pokemon.height .. '\n' + ..'Gewicht: ' .. pokemon.weight .. '\n' + ..'Größe: ' .. pokemon.height .. '\n' ..'Speed: ' .. pokemon.speed .. '\n' + ..'Spezies: ' .. pokemon.species .. '\n' end local function run(msg, matches) @@ -20,8 +21,8 @@ local function run(msg, matches) end return { - description = "Pokedex searcher for Telegram", - usage = "/pokedex [Name/ID]: Search the pokédex for Name/ID and get info of the pokémon!", + description = "Pokedex für Telegram", + usage = "/pokedex [Name/ID]", patterns = {"^/pokedex (.*)$"}, run = run }