喂!我是 Wei

Front-End Engineer

Be a Problem Solver.

⌘K

導覽

所有文章緣起互動小功能

文章分類

所有文章/標籤
#Discord.js

共 12 篇文章

2026年5月18日·8 min read·
Discord.jsBotNode.js

Discord Bot 監控與告警:Bot 掛掉時自動發通知到頻道

Bot 在半夜崩潰,隔天才發現?這篇實作兩層防線:用 heartbeat 讓 Bot 定時報活、用 Discord Webhook 在崩潰當下直接推告警,讓你第一時間知道 Bot 狀態。

閱讀全文 →
2026年4月1日·4 min read·
Discord.jsBotGroq

Discord Bot 串接 Groq:打造高速 AI 對話助理

實作 /ask 與 /reset:用 groq-sdk 串接 Llama 模型,做每個頻道獨立的多輪對話上下文,並補上錯誤處理與 token 成本控制。

閱讀全文 →
2026年3月31日·4 min read·
Discord.jsBotnode-cron

Discord Bot 排程任務:node-cron 做每日公告與資料重置

用 node-cron 讓 Bot 定時主動發訊息,並把每日簽到在凌晨自動重置;同時整理時區、重複啟動與容器部署時的排程陷阱。

閱讀全文 →
2026年3月30日·4 min read·
Discord.jsBotAutocomplete

Discord Bot Autocomplete:Slash Command 即時搜尋實戰

深入實作 Discord Autocomplete:在使用者輸入 option 的同時即時回傳建議,並用 /help command 做指令查詢。

閱讀全文 →
2026年3月29日·4 min read·
Discord.jsBotModal

Discord Bot Modal:用彈出表單做完整回饋流程

用 ModalBuilder 和 TextInputBuilder 建一個可用的 /feedback 系統:使用者填表、Bot 發 Embed 到管理頻道、資料同步寫入 Google Sheets。

閱讀全文 →
2026年3月28日·5 min read·
Discord.jsBotDocker

從本機到伺服器:Discord Bot 的 Docker 部署完整流程

用 process.on 攔截未捕獲的例外讓 Bot 自動重啟,以及用 Docker 做 dev/prod 雙環境部署,包含時區設定與 key 檔案的安全處理。

閱讀全文 →
2026年3月27日·6 min read·
Discord.jsBotGoogle Sheets API

Google Sheets 當後端?Discord Bot 的輕量資料層

用第一個實際功能串起整個 Bot 架構:用 Google Sheets 做資料層,建立每日簽到系統。管理員不用學 SQL,打開試算表就能操作。

閱讀全文 →
2026年3月26日·7 min read·
Discord.jsBotNode.js

Discord Bot Embed:用 EmbedBuilder 打造結構化訊息

discord.js v14 的 EmbedBuilder 完整指南:color、author、title、description、fields、thumbnail、image、footer、timestamp 一次全搞懂,加上即時預覽工具直接試玩。

閱讀全文 →
2026年3月25日·8 min read·
Discord.jsBotSelectMenu

Discord Bot 下拉選單:StringSelectMenu 完整設計

discord.js v14 的 StringSelectMenu 怎麼建立靜態與動態選項、isStringSelectMenu() 事件處理,以及和 Button 的搭配使用場景。

閱讀全文 →
2026年3月24日·7 min read·
Discord.jsBotButton

Discord Bot 按鈕互動:ActionRow、ButtonBuilder 與事件處理

discord.js v14 怎麼在訊息裡附上按鈕:ActionRowBuilder 與 ButtonBuilder 的組合方式、ButtonStyle 的差異,以及 isButton() 事件怎麼路由到對應 handler。

閱讀全文 →
2026年3月23日·10 min read·
Discord.jsBotSlash Commands

從一條指令到完整互動系統:Slash Commands 設計拆解

深入拆解 discord.js v14 的 Slash Commands 設計:指令定義、option 類型、靜態與動態選項、PermissionFlagsBits 權限控制,以及用 isButton / isStringSelectMenu / isChatInputCommand 實作三層互動分流。

閱讀全文 →
2026年3月22日·6 min read·
Discord.jsBotNode.js

Discord Bot 怎麼從零開始:申請、設定、第一個 Slash Command

完全從零開始:到 Discord Developer Portal 申請 Bot、設定權證與 Intents、邀請 Bot 進伺服器、設定環境變數,最後用 discord.js 寫出第一個 Slash Command。

閱讀全文 →

目前標籤

#Discord.js

12

篇文章

其他標籤

前端面試系列23Bot12Node.js12React9Next.js8TypeScript5Docker3MDX3效能優化3AI2Blog2Canvas2