You can read the source code of MinigameSuite to learn a bit about Pixelbots. Regarding memory hacking and other better ways to write a cheat/bot, there are enough tutorials out there. Guided Hacking is a good youtube channel about game hacking as well: