mirror of
https://github.com/nichkara/InfinitumBotty.git
synced 2026-06-10 22:26:23 +02:00
Initalize repo
This commit is contained in:
23
FaustBot/Modules/ModulePrototype.py
Normal file
23
FaustBot/Modules/ModulePrototype.py
Normal file
@@ -0,0 +1,23 @@
|
||||
class ModulePrototype(object):
|
||||
@staticmethod
|
||||
def cmd():
|
||||
raise NotImplementedError()
|
||||
|
||||
@staticmethod
|
||||
def get_module_types():
|
||||
raise NotImplementedError("This method needs to be implemented by a subclass!")
|
||||
|
||||
@staticmethod
|
||||
def help():
|
||||
raise NotImplementedError("Needs to be implemented by subclasses")
|
||||
|
||||
def __init__(self):
|
||||
self._config = None
|
||||
|
||||
@property
|
||||
def config(self):
|
||||
return self._config
|
||||
|
||||
@config.setter
|
||||
def config(self, value):
|
||||
self._config = value
|
||||
Reference in New Issue
Block a user