Skip to content

Web-API for hack.chat minimal, distraction-free chat application

Notifications You must be signed in to change notification settings

aurelione/hack_chat.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

hack_chat.py

Web-API for hack.chat minimal, distraction-free chat application

Example

import hack_chat

def welcome_user(hack_chat: hack_chat.HackChat, message: str, user: str):
    if "hello" in message.lower():
        hack_chat.send_message(f"Wassup {user}!")
        print(f"-- Greeted the user::: {user}!")
        
hack_chat = hackchat.HackChat(nickname="WelcomeBot", channel="programming")
hack_chat.messages += [welcome_user]
hack_chat.on_message()

About

Web-API for hack.chat minimal, distraction-free chat application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages