Uhm you will not be able to do this through a bot. I have made countless of bots chat bots which support all clients nothing great but they connect atleast What your trying to do is make hacks rather than make a bot.