from FaustBot.Communication.Connection import Connection from FaustBot.Modules.ModulePrototype import ModulePrototype from FaustBot.Modules.ModuleType import ModuleType class PrivMsgObserverPrototype(ModulePrototype): """ The Prototype of a Class who can react to every action """ @staticmethod def cmd(): raise NotImplementedError() @staticmethod def help(): raise NotImplementedError("Need sto be implemented by subclasses!") @staticmethod def get_module_types(): return [ModuleType.ON_MSG] def __init__(self): super().__init__() def update_on_priv_msg(self, data, connection: Connection): raise NotImplementedError("Some module doesn't do anything")