This is a cloudflare worker that functions as an interactions only Discord Bot.
All non-static requests must be authenticated using the bot token, or cryptographically signed by Discord.
The only request method accepted is POST.
Below are some useful tools for managing the bot.
This assumes that primary_app_id has been defined in the environment.
This assumes that BOTS environment variable is an array that includes an object shaped like this:
{ "id": "", "token": "", "verify_key": "", "mode": "ticketeer" }
This section is mandatory for all tools.
Set up the primary application.