pyaiml21.botconfig.misc.Properties¶
- class pyaiml21.botconfig.misc.Properties(other: Optional[Mapping[str, str]] = None)[source][source]¶
Properties of the bot.
Similar interface as a Python’s dictionary, but keeping all the values in uppercase.
- Example:
>>> bot_props = Properties() >>> bot_props["name"] = "MyBot" >>> bot_props["age"] = "19" >>> int(bot_props["age"]) 19 >>> "name" in bot_props True >>> bot_props["name"] == "MYBOT" True
Methods
Get bot's property or return default if not found.
Update bot's properties.