Bot Model

This is where all of ScalyMUCK’s model definitions are located, save for the modifications that may extend the software in such a way that it demands for extra models but that is beyond the point.

The “base” definitions located in models.py are:

All of the above classes inherit a few functions from ObjectBase as well.

class models.Bot(name=None, description=None, location=None)[source]

Bots are basically just the AI’s of the game. They’re not items, but they’re not players either. They have the special property of being interchangable with player object instances for the most part except when it comes to certain functions – such as having a password hash.

description

A 2000 character string representing the description of the Bot.

display_name

A 25 character string representing the name of the Bot displayed to Players.

id

This variable is the database number of the Bot.

location_id

This variable is the database number of the Room this Bot is located in.

name

A short 25 character string representing the name of the Bot. It should be all lowercase.

send(message)[source]

This is basically ‘send’ like for players except it does NOTHING.

Previous topic

Room Model

Next topic

Item Model

This Page