Advertisement
Shoghi-Gaming

Untitled

Feb 13th, 2021
795
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. def executor(sender, label, args):
  2.     sender.sendMessage("Hello. Label: " + label + " Args: " + str(args))
  3.  
  4.  
  5. def completer(sender, label, args):
  6.     result = []
  7.     result.extend(args)
  8.     result.append(label)
  9.     return result
  10.  
  11.  
  12. command = Command("pycmdtest", "Command test for python script!", "/pycmdtest UwU", ["pytest"])
  13.  
  14. command.set_executor(executor)
  15. command.set_tab_completer(completer)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement