Manager
class Manager:
def __init__(self):
self._bot = None
self._receiver = None
def setBot(self, bot):
self._bot = bot
def getBot(self):
if self._bot is None:
raise ValueError('Bot not set')
return self._bot
def setReceiver(self, receiver):
self._receiver = receiver
def getReceiver(self):
if self._receiver is None:
raise ValueError('Receiver not set')
return self._receiver
manager = Manager()