Guest User

Untitled

a guest
Aug 10th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. from modules.module import module ;
  2.  
  3. class template2(module):
  4.  
  5. def __init__(self):
  6. super().__init__() ;
  7. self.keywords = ["template2"] ; # <- Name of your module
  8. self.help = "Useless module" ; # <- will be printed out by the admin module
  9. self.whatis = "A simple template !"
  10. self.__version__ = "0.0.1"
  11.  
  12. @module.module_on_dec
  13. @module.check_command_dec # can be commented for passive functions.
  14. def run(self, cmd, sender=None, room=None):
  15. # if self.check_command(cmd):
  16. # return None ; Comment should be removed for passive functions
  17. # <- Your code goes here.
  18. return "Your Second Module" ;
  19.  
  20. @module.module_on_dec
  21. @module.clock_dec
  22. def run_on_clock(self):
  23. # <- Your code goes here.
  24. pass
  25.  
  26. def exit():
  27. pass
Add Comment
Please, Sign In to add comment