Minimal Discord bot library for Python
Project description
ucord
Ucord is a discord library build using threads for maximum performance
Bot example
import ucord
client = ucord.Client()
client.set_token("token")
client.run()
@client.on_ready
def on_ready(client):
print(f"Logged in as {client.user}")
@client.slash_command(name="ping", description="Ping command")
def ping(ctx):
embed = ucord.Embed(title="Pong!", description="Pong!")
ctx.reply("Bot is online", embed=embed)
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
ucord-0.0.3.tar.gz
(17.8 kB
view hashes)
Built Distribution
ucord-0.0.3-py3-none-any.whl
(19.0 kB
view hashes)