Skip to main content

A small slash commands wrapper for discord

Project description

Slice

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: Context, user: 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.0.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.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cordslash-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 98596ec03879172c8d42cbe9a0dd28132bffda3bd6d81793ff754c6d3391c15e
MD5 da05f183984b2a58f7fc4ff6a4c022cf
BLAKE2b-256 25d18196d2b01e67969f53d1b911b2f1c6b4ce8b18757084b256bba30a6a3460

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cordslash-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47e34af56d70af61285846d7a562b3f9e19c16fcca62c743dd97492a301ab8f7
MD5 33efd8929929a4ef67b7c7799a39296a
BLAKE2b-256 5ba9b7fa5192fdf05028b6764dbc19fce7a890e27a178365c50ab264be92d859

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