code: def get_client():
  	
  	with contextlib.suppress(Exception):
  		store = Storage.from_URI()
  		assert isinstance(store, pmxbot.storage.MongoDBStorage)
  		return store.db.database.client
docs: Use the same MongoDB client as pmxbot if available.