Skip to main content

A small slash commands wrapper for discord

Project description

Cordslash

cordslash is a WIP discord slash commands wrapper, that is built on the corded framework by vcokltfre. Expect more changes/features to be added in the future, currently undocumented but will be soon PR's are welcome

MAKE SURE TO INSTALL CORDED OTHERWISE USE THE POETRY ENV

example.py

import corded
import cordslash

intents = corded.Intents.default()
intents.guild_members = True

bot = cordClient(token="BOT_TOKEN", app_id=BOT_ID, intents=intents)

@bot.command(name="wave", guild_ids=[12345678910], description="Say hello to a user")
async def wave(ctx: cordslash.Context, user: cordslash.User) -> None:
    await ctx.send(f":wave: <@{user}>!")

bot.start()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cordslash-0.1.3.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

cordslash-0.1.3-py3-none-any.whl (7.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page