Skip to content

NFToolkit/nfd-bot

Repository files navigation

notes

setup

  1. create app
  2. general info -> copy application ID (client ID) and public key
  3. set webhook (inbound) url <base url>/interactions
  4. bot -> enable bot -> copy token
  5. enable developer settings on discord client (settings > advanced > toggle dev mode)
  6. create test server and copy ID
  7. create verify channel and copy its ID
  8. create .env file in project root

.env

PORT=8008
# enable developer settings on discord and right click to get IDs

# right click server name (top left)
DISCORD_GUILD_ID=''
# right click channel name
DISCORD_VERIFY_CHANNEL_ID=''

# from discord dev app pages

# general info
DISCORD_BOT_CLIENT_ID=''
DISCORD_BOT_CLIENT_PUBLIC_KEY=''
# bot
DISCORD_BOT_TOKEN=''

run

  1. npm install
  2. npm start
  3. click link in logs to invite to test server
  4. run /nfd start and /nfd verify
  5. tinker and finalize

other

register-commands.ts can be run separately (only needs to be run once unless the command defs change, think of it like a migration script for the state of the slash command). it can be done without libs if you want to put the request body together manually docs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published