lolsalat

[AD] Test Extension

Dec 4th, 2020 (edited)
836
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class TestExtension(Extension):
  2.     def __init__(self):
  3.         super().__init__("test")
  4.        
  5.     def test_command(self, arg=""):
  6.         """test method :)"""
  7.         self.debugger.log("I am so cool!")
  8.    
  9. extension = TestExtension()
  10. debugger.extensions["test"] = extension
  11. extension.enable(debugger)
  12. debugger.log("loaded test extension successfully!")
RAW Paste Data