You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							33 lines
						
					
					
						
							688 B
						
					
					
				
			
		
		
	
	
							33 lines
						
					
					
						
							688 B
						
					
					
				| 
 | |
| 
 | |
| 
 | |
| @plugin
 | |
| class SystemPlugin():
 | |
|     def __init__(self, pluginInterface, config):
 | |
|         super().__init__(pluginInterface, config)
 | |
|         self.config = config
 | |
|         self.interface = pluginInterface
 | |
|         self.plugins = pluginInterface.other_plugins
 | |
|         self.hooks = pluginInterface.hooks
 | |
| 
 | |
|         self.interface.register_function(self.echo)
 | |
|         self.interface.register_function(self.exec)
 | |
| 
 | |
|     @plugin_function()
 | |
|     def echo(self, string: str):
 | |
|         pass
 | |
| 
 | |
|     def exec(self):
 | |
|         pass
 | |
| 
 | |
|     @plugin_hook
 | |
|     def callback(self):
 | |
|         pass
 | |
| 
 | |
|     @plugin_attachment("pluginname.hookname")
 | |
|     def caller(self):
 | |
|         pass
 | |
| 
 | |
| 
 | |
| # interface.register_plugin(SystemPlugin)
 |