def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.settings = {'replies': ['Test failed.']} self.metasettings = { 'replies': { 'description': 'Replies:', 'type': 'list string' } } self.throttle = ResponseThrottle(self.core, self.human_name)
def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.settings = {'reddit_links': 3} self.metasettings = { 'reddit_links': { 'description': 'Maximum number of links to provide', 'type': 'integer' } } self.plugin_command = "!reddit" self.responder = ResponseThrottle(self.core, self.human_name)
def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.settings = { 'keyword_enabled': False, 'socket_timeout': 10 } self.metasettings = { 'keyword_enabled': { 'description': 'Enable "portscan" keyword trigger', 'type': 'bool' }, 'socket_timeout': { 'description': 'Socket timeout (in seconds)', 'type': 'int' } } self.__publiccommands__ = self.__privatecommands__ = [('port', self.port_checker_command)] self.throttle = ResponseThrottle(self.core, self.human_name) self.checkroom = "nicotine" self.pending_user = ""
def init(self): self.plugin_command = "!reddit" self.responder = ResponseThrottle(self.frame, self.__name__)
def init(self): self.throttle = ResponseThrottle(self.core, self.__name__)