/jagtag-interactions

Primary LanguageTypeScriptMozilla Public License 2.0MPL-2.0

JagTag Interactions

A simple Cloudflare worker that implements JagTags as slash commands for Discord

Registering commands

In order to use this, you'd need to register the commands in commands.json with Discord, for example:

curl -vX PUT -h "Content-Type: application/json" -h "Authorization: Bot <TOKEN>" -d @commands.json https://discord.com/api/v8/applications/<APPLICATION_ID>/commands

Refer to the documentation from Discord

Deploying to Cloudflare

First off, copy wrangler.toml.example to wrangler.toml and set assosiated variables, like your account ID and the Discord NaCL key.

If you haven't already, install Wrangler

This project requires Wrangler v2.0.x or up

When you've done that, just run wrangler publish.