diff --git a/README.md b/README.md index 3285566..8b02ab6 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,15 @@ 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 diff --git a/main.ts b/main.ts index ea58a32..1977c59 100644 --- a/main.ts +++ b/main.ts @@ -1,19 +1,12 @@ // SPDX-License-Identifier: WTFPL +// https://git.fogtype.com/nebel/pudusan const { /** https://console.groq.com/docs/api-keys */ GROQ_API_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 > サーバーに追加) - */ + /** https://discord.com/developers/applications > Discord Public Key */ DISCORD_PUBLIC_KEY, + /** https://discord.com/developers/applications > Bot > Build-A-Bot > Token */ DISCORD_TOKEN, } = Deno.env.toObject();