Python & asyncio wrapper for the QueUp API
Project description
backtracked
A python wrapper for the QueUp API.
You can find the docs here.
Example
from backtracked import Client, Presence, Message
import logging
c = Client()
logging.basicConfig(level=logging.DEBUG, format="%(levelname)s - %(name)s: %(message)s")
@c.event
async def on_ready():
print("Logged in as {0.username}".format(c.user))
await c.join_room("my-awesome-room")
@c.event
async def on_chat(message: Message):
if message.content == "~online":
await message.room.change_presence(Presence.enter)
elif message.content == "~ping":
await message.room.send_message("Pong!")
c.run(email="bot@example.com", password="my_bot_password")
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
backtracked-0.1.0.tar.gz
(17.5 kB
view hashes)
Built Distribution
Close
Hashes for backtracked-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8447023aaef6dea12816e97561eb3b299b2be78f4a899f2b8b13a422eb74a332 |
|
MD5 | dcd8d6d34a6c9a1d9398b5ae96621786 |
|
BLAKE2b-256 | 519f4b797828482530b14d7a2e05e6a95163961f4dad9cf9e7557c0a2a18f18d |