enigma.core.database package¶
Submodules¶
enigma.core.database.public module¶
-
class
enigma.core.database.public.
MongoClient
(config, logger, bot=None, *args, **kwargs)[source]¶ Bases:
motor_asyncio.AsyncIOMotorClient
-
get
(entity, state)[source]¶ Grabs the value stored for an entity’s state.
Parameters: - entity – Any discord object with an id attribute
- state – An event passed as str
Returns: Returns the state’s value if found or returns None
-