create a bot program

hi all, it is possible with python and game engine (game engine just to create interface of the bot program) to create a little bot program to use in online games? (not browser game)
a simple one, for example the game asks the player to type a random key and the python code gets this input and return the right key.
i have no idea how can i get these input from the server/game.

Why do you think you need a game engine to do something like that? What do you think the game engine is providing at this point?

Any library in any programming language supporting network connections can do that. In Python it is called “socket”.

yeah i know, i wasnt sure to post this topic here, but i wanted to use game angine to create some intereface with buttons and so on