Advertisement
Guest User

Clementine Python for xchat

a guest
Mar 19th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. #!/usr/bin/python
  2. # encoding: utf-8
  3.  
  4. __module_name__ = "Hexchat np script"
  5. __module_version__ = "1.0"
  6. __module_description__ = "Get NP information from Clementine"
  7.  
  8. import xchat, subprocess
  9.  
  10. def NP(self, word, word_eol):
  11.     text = subprocess.call(['/home/l337/scripts/./nptest.sh'])
  12.     xchat.command(text)
  13.  
  14. xchat.hook_command("np4", NP, help="Displays whats playing")
  15. xchat.prnt(u'%s v%s plugin loaded' % (__module_name__, __module_version__))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement