update docs

This commit is contained in:
Nebel 2024-07-28 18:40:26 +09:00
parent c2ef90443e
commit 7ac8af83cc
Signed by: nebel
GPG key ID: 79807D08C6EF6460
2 changed files with 12 additions and 10 deletions

View file

@ -2,6 +2,15 @@
Discord Bot Discord Bot
## 設定方法
1. [Discord アプリを作成](https://discord.com/developers/applications)
2. Public Key をコピー
3. Bot トークンを生成 (Bot > Build-A-Bot > Rest Token > Copy)
4. Deno Deploy: [Fork to Edit](https://dash.deno.com/playground/pudusan) > Settings > Environment Variables
5. Interactions Endpoint URL に `https://*.deno.dev` を指定
6. Install Link にアクセス (Installation > Install Link > サーバーに追加)
## ライセンス ## ライセンス
WTFPL WTFPL

13
main.ts
View file

@ -1,19 +1,12 @@
// SPDX-License-Identifier: WTFPL // SPDX-License-Identifier: WTFPL
// https://git.fogtype.com/nebel/pudusan
const { const {
/** https://console.groq.com/docs/api-keys */ /** https://console.groq.com/docs/api-keys */
GROQ_API_KEY, GROQ_API_KEY,
/** /** https://discord.com/developers/applications > Discord Public Key */
*
* 1. Discord https://discord.com/developers/applications
* 2. Public Key
* 3. Bot (Bot > Build-A-Bot > Rest Token > Copy)
*
*
* 4. Interactions Endpoint URL https://pudusan.deno.dev を指定
* 5. Install Link (Installation > Install Link > )
*/
DISCORD_PUBLIC_KEY, DISCORD_PUBLIC_KEY,
/** https://discord.com/developers/applications > Bot > Build-A-Bot > Token */
DISCORD_TOKEN, DISCORD_TOKEN,
} = Deno.env.toObject(); } = Deno.env.toObject();