From 84e20cbd83cd912bf7d594511a64058af9f46501 Mon Sep 17 00:00:00 2001 From: appelemac Date: Sat, 26 Mar 2016 20:51:33 +0100 Subject: [PATCH] response to settype & lists all moves after resetting to defaultmoves --- NadekoBot/Modules/Pokegame/Pokegame.cs | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/NadekoBot/Modules/Pokegame/Pokegame.cs b/NadekoBot/Modules/Pokegame/Pokegame.cs index d31e9d10..cd5b2ceb 100644 --- a/NadekoBot/Modules/Pokegame/Pokegame.cs +++ b/NadekoBot/Modules/Pokegame/Pokegame.cs @@ -313,8 +313,19 @@ namespace NadekoBot.Modules.pokegame type = entry.Value }); } - await e.Send("done"); - + + var str = "Reset moves.\n**Moves:**"; + //could sort, but meh + var dbMoves = DbHandler.Instance.GetAllRows(); + foreach (PokeMoves m in dbMoves) + { + var t = PokemonTypes.intToPokeType(m.type); + + str += $"\n{t.getImage()}{m.move}"; + } + + await e.Channel.SendMessage(str); + }); cgb.CreateCommand(Prefix + "settype") @@ -351,6 +362,10 @@ namespace NadekoBot.Modules.pokegame UserId = (long)e.User.Id, type = targetType.getNum() }); + + //Now for the response + + await e.Channel.SendMessage($"Set type of {e.User.Mention} to {targetTypeString}{targetType.getImage()} for a 🌸"); }); }); }