Skip to main content

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


Download files

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

Source Distribution

SlashDiscord-0.3.1.tar.gz (25.1 kB view hashes)

Uploaded Source

Built Distribution

SlashDiscord-0.3.1-py3-none-any.whl (26.5 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