Metadata-Version: 1.0
Name: hclib
Version: 0.1.2
Summary: A library to connect to https://hack.chat/
Home-page: https://github.com/neelkamath/hack.chat-library
Author: Neel Kamath
Author-email: neelkamath@protonmail.com
License: MIT
Description: 
        Example
        =======
        
        .. code:: python
        
            #!/usr/bin/env python3
        
            import hclib
        
        
            # Make a callback function with two parameters.
            def on_message(connector, data):
                # The second parameter (<data>) is the data received.
                print(data)
                print(connector.onlineUsers)
                # Checks if someone joined the channel.
                if data["type"] == "online add":
                    # Sends a greeting the person joining the channel.
                    connector.send("Hello {}".format(data["nick"]))
        
        
            if __name__ == "__main__":
                hclib.HackChat(on_message, "myBot", "botDev")
        
Keywords: hack.chat library
Platform: UNKNOWN
