Skip to main content

vcokltfre/SlashPatch

A command handler/dispatcher webserver for Discord slash commands

Example:

from slashpatch import Server, Context, command, Cog

app = Server('c293758d88bc26d54963f05676a8fa6c3404570169e350afd5c1f318bf52732a')

class Example(Cog):
    @command(name="example")
    async def example(self, ctx: Context):
        print(ctx.raw)
        return ctx.respond("Hello, world!", ephemeral=True)

    @command(name="cases")
    async def cases(self, ctx: Context):
        return ctx.respond(embed={"description":"h"})

app.add_cog(Example())

Then run:

uvicorn main:app --host 0.0.0.0

Metadata

Release files for slashpatch 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for slashpatch 1.1.0
File Size Uploaded
slashpatch-1.1.0.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for slashpatch 1.1.0
File Interpreter ABI Platform
slashpatch-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.7 kB

Release files / slashpatch-1.1.0.tar.gz

Download URL slashpatch-1.1.0.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1c3ce4f1b367beabe6822f2489fb84d35dccef5431eefeea40e8a15f6552b2cd
BLAKE2b-256 checksum
How to use checksums
95eda8b545f59ade7b2a66b44f848359408558061a97bc8010bab3ff670c1734
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.5

Release files / slashpatch-1.1.0-py3-none-any.whl

Download URL slashpatch-1.1.0-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8848a43383a38bbb064b46bdbe2786ef6062dd9598961b16a69628e8b99b083d
BLAKE2b-256 checksum
How to use checksums
0bb9e260ff3d899579a7d4c6c533c1d02b5fea6a7906cb39658d59ae1079ba61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page