Skip to content

Commit

Permalink
Telegram Update: Added Amount of Pokemons to /profile Command
Browse files Browse the repository at this point in the history
  • Loading branch information
MineMalox committed Aug 9, 2016
1 parent 5696c28 commit 9703b50
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions PoGo.NecroBot.CLI/Config/Translations/translation.de.json
Original file line number Diff line number Diff line change
Expand Up @@ -368,15 +368,15 @@
},
{
"Key": "ProfileStatsTemplateString",
"Value": "----- LVL {0} | {1} ----- \n Erfahrungspunkte: {2}/{3} \n Pokemons gefangen: {4} \n Pokemons verschickt: {5} \n Pokestops besucht: {6} \n Eier geschlüpft: {7} \n Pokemons entwickelt: {8} \n Pokedex Einträge: {9} \n KM gelaufen: {10}"
"Value": "----- LVL {0} | {1} ----- \n Erfahrungspunkte: {2}/{3} \n Pokemons gefangen: {4} \n Pokemons verschickt: {5} \n Pokestops besucht: {6} \n Eier geschlüpft: {7} \n Pokemons entwickelt: {8} \n Pokedex Einträge: {9} \n KM gelaufen: {10} \n Pokemons: {11}/{12}"
},
{
"Key": "ShowPokeTemplate",
"Value": " \n WP {0} | IV : {1}% | Name: {2}"
},
{
"Key": "HelpTemplate",
"Value": "Kommandos: \n \n /top <cp/iv> <amount> - Zeigt die besten Pokemons an. \n /all <cp/iv> - Zeigt dir alle Pokemons an. \n /profile - Zeigt dein Profil. \n /loc - Zeigt deine Position an. \n /items - Zeigt dir deine Items \n /status - Zeigt den Status vom Bot."
"Value": "Kommandos: \n \n /top <cp/iv> <amount> - Zeigt die besten Pokemons an. \n /all <cp/iv> - Zeigt dir alle Pokemons an. \n /profile - Zeigt dein Profil. \n /loc - Zeigt deine Position an. \n /items - Zeigt dir deine Items \n /status - Zeigt den Status vom Bot. "
},
{
"Key": "StatsXpTemplateString",
Expand Down
2 changes: 1 addition & 1 deletion PoGo.NecroBot.Logic/Common/Translations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ public class Translation : ITranslation
new KeyValuePair<TranslationString, string>(TranslationString.StatsTemplateString,
"{0} - Runtime {1} - Lvl: {2} | EXP/H: {3:n0} | P/H: {4:n0} | Stardust: {5:n0} | Transfered: {6:n0} | Recycled: {7:n0}"),
new KeyValuePair<TranslationString, string>(TranslationString.ProfileStatsTemplateString,
"----- LVL {0} | {1} ----- \n Experience: {2}/{3} \n Pokemons caught: {4} \n Pokemons deployed: {5} \n Pokestops visited: {6} \n Eggs hatched: {7} \n Pokemons envolved: {8} \n Pokedex entries: {9} \n KM walked: {10}"),
"----- LVL {0} | {1} ----- \n Experience: {2}/{3} \n Pokemons caught: {4} \n Pokemons deployed: {5} \n Pokestops visited: {6} \n Eggs hatched: {7} \n Pokemons envolved: {8} \n Pokedex entries: {9} \n KM walked: {10} \n Pokemons: {11}/{12}"),
new KeyValuePair<TranslationString, string>(TranslationString.ShowPokeTemplate,
"\n CP: {0} | IV: {1}% | Name: {2}"),
new KeyValuePair<TranslationString, string>(TranslationString.HelpTemplate,
Expand Down
5 changes: 4 additions & 1 deletion PoGo.NecroBot.Logic/Service/TelegramService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ private async void OnTelegramMessageReceived(object sender, MessageEventArgs mes
var stats = session.Inventory.GetPlayerStats().Result;
var stat = stats.FirstOrDefault();

var myPokemons2 = await session.Inventory.GetPokemons();
answerTextmessage += session.Translation.GetTranslation(TranslationString.ProfileStatsTemplateString,
new object[]
{
Expand All @@ -129,7 +130,9 @@ private async void OnTelegramMessageReceived(object sender, MessageEventArgs mes
stat.EggsHatched,
stat.Evolutions,
stat.UniquePokedexEntries,
stat.KmWalked
stat.KmWalked,
myPokemons2.ToList().Count,
session.Profile.PlayerData.MaxPokemonStorage
});
SendMessage(message.Chat.Id, answerTextmessage);
break;
Expand Down

0 comments on commit 9703b50

Please sign in to comment.