Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- # encoding: utf-8
- __module_name__ = "Hexchat np script"
- __module_version__ = "1.0"
- __module_description__ = "Get NP information from Clementine"
- import xchat, subprocess
- def NP(self, word, word_eol):
- text = subprocess.call(['/home/l337/scripts/./nptest.sh'])
- xchat.command(text)
- xchat.hook_command("np4", NP, help="Displays whats playing")
- xchat.prnt(u'%s v%s plugin loaded' % (__module_name__, __module_version__))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement