mirror of
https://github.com/syuilo/ai.git
synced 2025-03-25 21:12:56 +00:00
Misskey Ai-chan bot
This patch fixes compile error. @types/retry has removed WarpOptions which is used by @types/promise-retry. If @types/promise-retry does not update will cause following error. node_modules/@types/promise-retry/index.d.ts(7,10): error TS2305: Module '"/ai/node_modules/@types/retry/index"' has no exported member 'WrapOptions'. |
||
---|---|---|
src | ||
.editorconfig | ||
.gitignore | ||
ai.png | ||
ai.svg | ||
LICENSE | ||
package.json | ||
README.md | ||
torisetu.md | ||
tsconfig.json | ||
WorksOnMyMachine.png |
An Ai for Misskey. About Ai
これなに
Misskey用の日本語Botです。
インストール
Node.js と npm と MeCab (オプション) がインストールされている必要があります。
まず適当なディレクトリに git clone
します。
次にそのディレクトリに config.json
を作成します。中身は次のようにします:
{
"host": "https:// + あなたのインスタンスのURL (末尾の / は除く)",
"i": "藍として動かしたいアカウントのAPIキー",
"keywordEnabled": "キーワードを覚える機能 (MeCab が必要) を有効にする場合は true を入れる (無効にする場合は false)",
"reversiEnabled": "藍とリバーシで対局できる機能を有効にする場合は true を入れる (無効にする場合は false)",
"serverMonitoring": "サーバー監視の機能を有効にする場合は true を入れる (無効にする場合は false)",
"mecab": "MeCab のインストールパス (ソースからインストールした場合、大体は /usr/local/bin/mecab)"
}
npm install
して npm run build
して npm start
すれば起動できます
記憶
藍は記憶の保持にインメモリデータベースを使用しており、藍のインストールディレクトリに memory.json
という名前で永続化されます。
ライセンス
MIT
Awards
