A simple Python wrapper around the Aster protocol, inspired by the syntax of discord.py
Project description
aster.py
Aster.py is a python implementation of the Aster protocol, designed for use in bots or custom clients. The syntax is heavily inspired by discord.py.
Currently a work in progress, does not support all of the features of Aster.
PyPI release can be found here
Documentation
See http://cospox.com/docs/asterpy/
Example
Ping example (listens for "ping" and responds "pong")
import asterpy
client = asterpy.Client(ip, port, username, password, uuid)
@client.event
async def on_message(message):
if message.content == "ping":
await message.channel.send("pong")
@client.event
async def on_ready():
print("Ready!")
client.run()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
asterpy-0.1.1.tar.gz
(8.0 kB
view hashes)