They could just talk to an npc that has an npc dialogue box and leave it open. Seems a rather waste of effort to create a macro or use a bot just to stay logged in.