3 ms·
Slshx is a library for building strongly-typed Discord commands (https://discord.com/developers/docs/interactions/application-commands https://discord.com/devel
by mrbbot 5y ago
Slshx is a library for building strongly-typed Discord commands (https://discord.com/developers/docs/interactions/application-commands https://discord.com/developers/docs/interactions/application...) that run on Cloudflare Workers (https://workers.cloudflare.com/ https://workers.cloudflare.com/), using a React-inspired syntax (hooks and JSX). It supports all Discord command types/options, autocomplete and interactive message components. During development, it automatically deploys your commands whenever you change your code.
I created this because I think Cloudflare Workers are a great fit for hosting Discord commands, but there wasn't an easy way to get started that had a fun development experience. I also wanted to see what a Miniflare-first (https://github.com/cloudflare/miniflare https://github.com/cloudflare/miniflare) library could look like.