Advertisement
Kulgan_Starkk

HexChat Python Channel Hop Script

Feb 19th, 2016
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import hexchat
  2. import time
  3. __module_name__ = 'hopCommand'
  4. __module_version__ = '1.0'
  5. __module_description__ = 'Respond to /hop by parting and re-joining the channel'
  6. def hopCommand(word, word_eol, userdata):
  7. hexchat.command('part ' + hexchat.get_info("channel") + " Hopping!")
  8. hexchat.command('timer 1 join ' + chan)
  9. return hexchat.EAT_ALL
  10. hexchat.hook_command('hop', hopCommand, help='Part and Re-join the Channel')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement