Skip to content

Latest commit

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

hackchat

hackchat is a Python library for writing hack.chat bots and clients. It is event-driven, simple to use, and is contained in a single file.

Installation

  • Install the library: pip3 install hackchat

Usage

#!/usr/bin/env python3importhackchatdefmessage_got(chat, message, sender):
if"hello"inmessage.lower():
chat.send_message("Hello there {}!".format(sender))
chat=hackchat.HackChat("HelloBot", "programming")
chat.on_message+= [message_got]
chat.run()

License

This project is under the MIT License.

About

An event-driven Python library for hack.chat

Resources

Stars

33 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages