class BusinessPlugin(WillPlugin): def __init__(self, *args, **kwargs): self.business = Business() return WillPlugin.__init__(self, *args, **kwargs) @hear("business") def hear_business(self, message): """ business: Get your favourite corporate strategems """ return self.reply(message, self.business.acquire_business())
def __init__(self, *args, **kwargs): self.business = Business() return WillPlugin.__init__(self, *args, **kwargs)