Skip to content

Instantly share code, notes, and snippets.

@adabo
Last active January 25, 2020 17:31
Show Gist options
  • Save adabo/0b57ad0b81c9ecdc723f117d2280bbd7 to your computer and use it in GitHub Desktop.
Save adabo/0b57ad0b81c9ecdc723f117d2280bbd7 to your computer and use it in GitHub Desktop.
Read message
import hexchat
__module_name__ = "Read Messages"
__module_author__ = "adabo"
__module_version__ = "0.1"
__module_descritption = "Reads messages and shows them"
def readMessage(word, word_eol, userdata, attribs):
print(repr(word))
print(repr(word_eol))
print(repr(userdata))
print(repr(attribs))
return hexchat.EAT_NONE
hexchat.hook_print_attrs('Channel Message', readMessage)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment