This is the main ScalyMUCK server code, it performs the initialisation of various systems and is the binding of everything.
Server class that is initialized by the main.py script to act as the MUCK server. It performs all of the core functions of the MUCK server, which is mainly accepting connections and performing the login sequence before giving them access to the server and its world.
The server class is created and managed by the main.py script.
When created, the server automatically initiates a Telnet server provided by Miniboa which immediately listens for incoming connections and will query them for login details upon connection.
Finds a player connection by their database ID.
This is merely a callback for Miniboa to refer to when receiving a client connection from somewhere.
This is merely a callback for Miniboa to refer to when receiving a client disconnection.
Shuts down the ScalyMUCK server.
This command shuts down the ScalyMUCK server and gracefully disconnects all connected clients by sending a message before their disconnection which currently reads: “The server has been shutdown adruptly by the server owner.” This message cannot be changed.
The update command is called by the main.py script file.
The update command does as it says, it causes the server to go through and poll for data from any of the clients and processes this data differently based on whether or not that they had actually logged in. When this function finishes calling, a single world tick has passed.