So I am pretty new to coding in general and am looking to learn to program bots, particularly in Python. Now, I have a pretty basic grasp of Java, meaning that basically I can code things and maybe use multiple classes in seperate .java's to create a program that functions, however I have literally no idea how to interact with things beyond that, IE the realm client and such. I have no idea how to alter/send packets and such. Where should I start?

I am working on first coding a spambot. It will be a work in progress for the most part, and I will improve things, debug things, and work on it over a period of time. However, I really have no idea where to start. Anyone here have any info that might help me out? Thanks!