def server_services():
 from evennia.server.sessionhandler import SESSIONS
 if (hasattr(SESSIONS, 'server') and hasattr(SESSIONS.server, 'services')):
  server = SESSIONS.server.services.namedServices
 else:
  server = {}
 del SESSIONS
 return server

def server_services ( ) : from evennia . server . sessionhandler import SESSIONS if ( hasattr ( SESSIONS , 'server' ) and hasattr ( SESSIONS . server , 'services' ) ) : server = SESSIONS . server . services . namedServices else : server = { } del SESSIONS return server
lists all services active on the server .