Skip to content

Latest commit

 

History

History

3-discord

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Challenge #3: Discord Bots

Setup

  1. Install npm dependencies
  2. Create a Discord Application
  3. Store the Application's Client ID and Public Key values inside the wrangler.toml file's [vars] config:
  • CLIENT_ID
  • PUBLICKEY
  1. Copy the Client Secret value, and then store it as Workers Secret using wrangler:
    $ wrangler secret put CLIENT_SECRET
  2. Create a new KV Namespace, saving its ID value inside your wrangler.toml file

Deploy

A local "deploy" script is included, found within the package.json file.

This is an alias for wrangler publish, but it will also run the "build" command before publishing.

$ npm run deploy