response to settype & lists all moves after resetting to defaultmoves

This commit is contained in:
appelemac 2016-03-26 20:51:33 +01:00
parent 9d4d608a3d
commit 84e20cbd83

View File

@ -313,7 +313,18 @@ 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<PokeMoves>();
foreach (PokeMoves m in dbMoves)
{
var t = PokemonTypes.intToPokeType(m.type);
str += $"\n{t.getImage()}{m.move}";
}
await e.Channel.SendMessage(str);
});
@ -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 🌸");
});
});
}