'Called self.interval seconds to keep connection. We cannot use
the IDLE command from inside the game since the system will
not catch it (commands executed from the server side usually
has no sessions). So we update the idle counter manually here
instead. This keeps the bot getting hit by IDLE_TIMEOUT.'

def at_repeat(self):

    global _SESSIONS
    if (not _SESSIONS):
        from evennia.server.sessionhandler import SESSIONS as _SESSIONS
    for session in _SESSIONS.sessions_from_player(self.player):
        session.update_session_counters(idle=True)
