update docs
This commit is contained in:
parent
c2ef90443e
commit
7ac8af83cc
2 changed files with 12 additions and 10 deletions
|
@ -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
|
||||
|
|
13
main.ts
13
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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue