Skip to content

Union-Chat/union.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

union.py

A python library for Kromatic's Union chatservice. Current version: 0.0.7

Installation

pip3 install unionchat

Requirements

  • websockets
  • pyee
  • aiohttp

Example

import unionchat

client = unionchat.Client(username='Test', password = 'Test')

@client.event.on('ready')
async def ready():
  print('Union client loaded')
  
 @client.event.on('message')
 async def on_message(msg):
  if msg.content.lower() == '!hi':
    await msg.reply('Oh hi there {}'.format(msg.author))
    
client.start()

Documentation

Find it here

Releases

No releases published

Packages

 
 
 

Languages