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.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cordslash-0.1.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file cordslash-0.1.1.tar.gz.

File metadata

  • Download URL: cordslash-0.1.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.0

File hashes

Hashes for cordslash-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ccdb6151c32c697886fb91db56ca7e398233d92f82726bfdf3895790fa3b9404
MD5 16f3e4461c4dbee13e7ed7e29253d188
BLAKE2b-256 295906155bad55a5a31f9b7e52df559ade63771397976a54cfefb677d89724f8

See more details on using hashes here.

File details

Details for the file cordslash-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: cordslash-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.0

File hashes

Hashes for cordslash-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 965765f9d4ad919089f393c73d9fc42a1b791d1ceed60496d480916f2752d59c
MD5 f29587df33aa054549cdd86e5da82a8f
BLAKE2b-256 84c264acf342f6e07f26bed6335cfe76256d5c48f15fca64210643ed877aa2c3

See more details on using hashes here.

Supported by

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