Futurism › class › dAmnNsMember
From Botdom Documentation
The dAmnNsMember class is a class for each member (user) of any ns. The class holds relevant properties, and is used in the values of the members dict in the dAmnNs class.
Properties
- str chatroom — The ns as dAmnNs-inherited object instance.
- int count — The amount of times this member has joined this ns. Default is 1.
- dict properties or props — A dictionary of this user's information (such as symbol, realname, etc.) as sent by the dAmn server.
- str username — The member's username.
Initialization
__init__(str username, dict properties, str chatroom)
Sets the properties from the values found in the parameters.
member = dAmnNsMember("someguy", {'typename': 'Self-proclaimed Genius', 'symbol': '~', 'realname': '', 'usericon': '3', 'gpc': 'guest'}, "chat:elec") # member.chatroom is: chat:elec # member.count is: 1 # member.properties is: {'typename': 'Self-proclaimed Genius', 'symbol': '~', 'realname': '', 'usericon': '3', 'gpc': 'guest'} # member.props is: {'typename': 'Self-proclaimed Genius', 'symbol': '~', 'realname': '', 'usericon': '3', 'gpc': 'guest'} # member.username is: someguy

