Extra lightweight discord slash command library
Project description
SlashDiscord
A extreemly simple, straight forward slash command library for discord.
Why we are here
Since the main discord.py library was archived, we wanted to create a new library that was built from the ground up for simple slash commands By building from the ground up, we are able to make an extreemly small, lightweight library that keeps it simple, stupid.
Usage
First, define any of your functions
def ping(ctx): return "Hey pong!"
Then, initialize the function as a slash command object
ping_command = slashReppo.Command("ping", 1, "ping", handler=ping)
Then, start an instantiation of your client with your commands
_client = slashReppo.Client("your_token", int(your_intents), "your_app_id", commands=[ping_command])
If you have not registered thse commands
_client.register()
And finally connect
_client.connect()
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
Built Distribution
File details
Details for the file SlashDiscord-0.3.1.tar.gz
.
File metadata
- Download URL: SlashDiscord-0.3.1.tar.gz
- Upload date:
- Size: 25.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d23c7960efe264fb7398ca2871050c5a2ed5b3b4c05b36e594c8a96979d7022 |
|
MD5 | 4d026e5afeea1f8537ad3eca06245315 |
|
BLAKE2b-256 | 60eb3af33e0517395040fddd77c089c6a6f7c65d5f55f344b7170d8cdcbb5bb4 |
File details
Details for the file SlashDiscord-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: SlashDiscord-0.3.1-py3-none-any.whl
- Upload date:
- Size: 26.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3714aea0e9d594d533013a0cf9bcd0e68dbad9d6d94736c7b9b4a58663ef634 |
|
MD5 | 231ba94286eb84facb84468e665345b1 |
|
BLAKE2b-256 | 659e0a2f70690251c510f66b85717e4ea725b404a812b32e29d6f1acf2cb68ba |