Much improved the bot. Needs working on attack-sniffing.