Skip to content

side-project-at-SPT/discord-js-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  1. 註冊 Discord Application https://discord.com/developers/applications
  2. 邀請機器人至伺服器
  3. 新增 config.json 檔案
  4. 安裝依賴 pnpm i (目前版本使用 node.js v20.14.0 以及 pnpm v9.15.2)
  5. 執行 pnpm start 並觀察結果
  6. 至 Discord 伺服器輸入 /ping 以及其他指令測試

config.json

{
  "token": "YOUR-DISCORD-APPLICATION-TOKEN",
  "clientId": "YOUR-DISCORD-APPLICATION-ID",
  "guildId": "YOUR-DISCORD-GUILD-ID (aka server id)"
}

Docs

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published