/aster-py

Primary LanguagePythonMIT LicenseMIT

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("Username", "Password")
client.add_server("example.com", 2345, uuid=my_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()