Skip to content

Commit

Permalink
add unwritten text and fix typo in README_JA.md
Browse files Browse the repository at this point in the history
  • Loading branch information
You-saku committed Feb 2, 2025
1 parent ffa4c1d commit d8e35ce
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions i18n/readme/README_JA.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,20 @@

**必須条件:**

- [Python 2.7+](https://www.python.org/downloads/)
- [Node.js 23+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
- [pnpm](https://pnpm.io/installation)

> **Windowsユーザーへの注意事項:** [WSL 2](https://learn.microsoft.com/ja-jp/windows/wsl/install)が必須です。
### .envファイルの編集

- .env.exampleを.envにコピーし、適切な値を入力
- TWITTER環境変数を編集して、ボットのユーザー名とパスワードを追加

### キャラクターファイルの編集

- `packages/core/src/defaultCharacter.ts`ファイルを確認 - これを変更可能
- `packages/core/src/defaultCharacter.ts` デフォルトのキャラクター設定 ← これを編集
- `pnpm start --characters="path/to/your/character.json"`を使用してキャラクターをロードし、複数のボットを同時に実行可能

.envファイルとキャラクターファイルを設定した後、以下のコマンドでボットを起動可能:
Expand Down Expand Up @@ -65,15 +68,15 @@ pnpm start

## 追加の要件

Sharpをインストールする必要があるかもしれません。起動時にエラーが表示された場合は、以下のコマンドでインストールを試みてください:
Sharpをインストールする必要があるかもしれません。起動時にエラーが表示された場合は、以下のコマンドでインストールを試みてください

```
pnpm install --include=optional sharp
```

# 環境設定

���まざまなプラットフォームに接続するために、.envファイルに環境変数を追加する必要があります:
さまざまなプラットフォームに接続するために、.envファイルに環境変数を追加する必要があります

```
# 必須環境変数
Expand Down Expand Up @@ -150,7 +153,7 @@ XAI_MODELを追加し、[Llamaでの実行](#run-with-llama)のオプション

## Discordボット

Discordボットの設定に関するヘルプについては、こちらを参照してください: https://discordjs.guide/preparations/setting-up-a-bot-application.html
Discordボットの設定に関するヘルプについては、こちらを参照してください https://discordjs.guide/preparations/setting-up-a-bot-application.html

# 開発

Expand All @@ -170,7 +173,7 @@ pnpm test:sqlite # SQLiteでテストを実行
pnpm test:sqljs # SQL.jsでテストを実行
```

テストはJestを使用して記述されており、`src/**/*.test.ts`ファイルにあります。テスト環境は次のように構成されています:
テストはJestを使用して記述されており、`src/**/*.test.ts`ファイルにあります。テスト環境は次のように構成されています

- `.env.test`から環境変数をロード
- 長時間実行されるテストのために2分のタイムアウトを使用
Expand Down

0 comments on commit d8e35ce

Please sign in to comment.