From b1240ad5b857ef42c6a5b1ed15e390507dd8ae60 Mon Sep 17 00:00:00 2001 From: sudoskys Date: Sun, 22 Oct 2023 14:48:09 +0000 Subject: [PATCH] deploy: 74f2c397913337baa1809524d5a3211fce7cf99d --- 404.html | 2 +- ...> en_guide_getting-started.md.279d47d6.js} | 16 +++++++++-- ..._guide_getting-started.md.279d47d6.lean.js | 1 + ..._guide_getting-started.md.2ca0dc42.lean.js | 1 - ...s => guide_getting-started.md.e9c69af5.js} | 26 +++++++++++++++-- ...guide_getting-started.md.e9c69af5.lean.js} | 2 +- dev/arch.html | 2 +- dev/basic.html | 2 +- dev/client.html | 2 +- dev/middleware.html | 2 +- en/dev/arch.html | 2 +- en/dev/basic.html | 2 +- en/dev/client.html | 2 +- en/dev/middleware.html | 2 +- en/guide/command.html | 2 +- en/guide/getting-started.html | 18 +++++++++--- en/guide/maintain.html | 2 +- en/guide/service.html | 2 +- en/index.html | 2 +- guide/command.html | 2 +- guide/getting-started.html | 28 ++++++++++++++++--- guide/maintain.html | 2 +- guide/service.html | 2 +- hashmap.json | 2 +- index.html | 2 +- 25 files changed, 94 insertions(+), 34 deletions(-) rename assets/{en_guide_getting-started.md.2ca0dc42.js => en_guide_getting-started.md.279d47d6.js} (92%) create mode 100644 assets/en_guide_getting-started.md.279d47d6.lean.js delete mode 100644 assets/en_guide_getting-started.md.2ca0dc42.lean.js rename assets/{guide_getting-started.md.98b18dd0.js => guide_getting-started.md.e9c69af5.js} (90%) rename assets/{guide_getting-started.md.98b18dd0.lean.js => guide_getting-started.md.e9c69af5.lean.js} (71%) diff --git a/404.html b/404.html index a0ed1c6..56eefcf 100644 --- a/404.html +++ b/404.html @@ -15,7 +15,7 @@
Skip to content

404

PAGE NOT FOUND

But if you don't change your direction, and if you keep looking, you may end up where you are heading.

Released under the GFDL License.

- + \ No newline at end of file diff --git a/assets/en_guide_getting-started.md.2ca0dc42.js b/assets/en_guide_getting-started.md.279d47d6.js similarity index 92% rename from assets/en_guide_getting-started.md.2ca0dc42.js rename to assets/en_guide_getting-started.md.279d47d6.js index 91564b4..5ddec54 100644 --- a/assets/en_guide_getting-started.md.2ca0dc42.js +++ b/assets/en_guide_getting-started.md.279d47d6.js @@ -1,4 +1,4 @@ -import{_ as s,o as a,c as n,Q as o}from"./chunks/framework.3e9aee8a.js";const u=JSON.parse('{"title":"📝 Deployment Guide","description":"","frontmatter":{},"headers":[],"relativePath":"en/guide/getting-started.md","filePath":"en/guide/getting-started.md","lastUpdated":1697979506000}'),l={name:"en/guide/getting-started.md"},e=o(`

📝 Deployment Guide

📦 Check system

Please confirm that your system language set is UTF8, otherwise enter dpkg-reconfigure locales to configure the language.

Please make sure that the memory of your server is greater than 1G, otherwise PM2 will restart indefinitely.

tip

The base operating load is approximately 600MB of memory per receiver + transmitter (one platform). Receivers and transmitters can be deployed separately, but the database must be shared.

🥞 Automatic installation

If you are using a brand new server, you can use the following shell to try to automatically install this project.

shell
curl -sSL https://raw.githubusercontent.com/LLMKira/Openaibot/main/deploy.sh | bash
curl -sSL https://raw.githubusercontent.com/LLMKira/Openaibot/main/deploy.sh | bash

🥣 Docker

shell
git clone https://github.com/LlmKira/Openaibot.git
+import{_ as s,o as a,c as n,Q as l}from"./chunks/framework.3e9aee8a.js";const u=JSON.parse('{"title":"📝 Deployment Guide","description":"","frontmatter":{},"headers":[],"relativePath":"en/guide/getting-started.md","filePath":"en/guide/getting-started.md","lastUpdated":1697986050000}'),o={name:"en/guide/getting-started.md"},e=l(`

📝 Deployment Guide

📦 Check system

Please confirm that your system language set is UTF8, otherwise enter dpkg-reconfigure locales to configure the language.

Please make sure that the memory of your server is greater than 1G, otherwise PM2 will restart indefinitely.

tip

The base operating load is approximately 600MB of memory per receiver + transmitter (one platform). Receivers and transmitters can be deployed separately, but the database must be shared.

🥞 Automatic installation

If you are using a brand new server, you can use the following shell to try to automatically install this project.

shell
curl -sSL https://raw.githubusercontent.com/LLMKira/Openaibot/main/deploy.sh | bash
curl -sSL https://raw.githubusercontent.com/LLMKira/Openaibot/main/deploy.sh | bash

🥣 Docker

shell
git clone https://github.com/LlmKira/Openaibot.git
 cd Openaibot
 docker-compose -f docker-compose.yml -p llmbot up -d llmbot
git clone https://github.com/LlmKira/Openaibot.git
 cd Openaibot
@@ -48,7 +48,17 @@ import{_ as s,o as a,c as n,Q as o}from"./chunks/framework.3e9aee8a.js";const u=
 DISCORD_BOT_PREFIX = !
 DISCORD_BOT_PROXY_ADDRESS = socks5://
DISCORD_BOT_TOKEN = Y0NzY0NzY0NzY0NzY0NzY0.DsYQDQ.0
 DISCORD_BOT_PREFIX = !
-DISCORD_BOT_PROXY_ADDRESS = socks5://

To apply for Discord Bot, please go to Official Platform

Click on oauth2/url-generator, select the permission group bot, copy the link to the browser and open it, select the server where you want to add the robot, and then click Authorize.

Here!

Discord Bot currently requires the Intent privileged image. Currently we have all privileges checked, but we will not use your data.

Since i am not clear exactly which Intents to use , if you have any idea, please submit suggestions for modification.

For details, see Official Documentation and Blog article Discord

🍗 Slack

The Slack platform requires you to create the app yourself and then add it to your workspace.

ini
SLACK_APP_TOKEN = xapp
+DISCORD_BOT_PROXY_ADDRESS = socks5://

To apply for Discord Bot, please go to Official Platform

Click on OAuth2 URL Generator sheet, select the permission group bot, then select Send Messages and Read Message History,Send Messages in Theads Attach Files Mentions Everyone Use Slash Command

Copy the link to the browser and open it, select the server where you want to add the robot, and then click Authorize.

Intents Apply

Open the bot page,Turn on Message Content Intent

ini
my_intents = (
+             Intents.GUILDS |
+             Intents.GUILD_MESSAGES |
+             Intents.DM_MESSAGES |
+             Intents.MESSAGE_CONTENT
+             )
my_intents = (
+             Intents.GUILDS |
+             Intents.GUILD_MESSAGES |
+             Intents.DM_MESSAGES |
+             Intents.MESSAGE_CONTENT
+             )

Here!

Once your bot reaches 100 or more servers, this will require verification and approval. Notice

🍗 Slack

The Slack platform requires you to create the app yourself and then add it to your workspace.

ini
SLACK_APP_TOKEN = xapp
 SLACK_BOT_TOKEN = xoxb
 SLACK_SIGNING_SECRET = xxxxxxx
 SLACK_BOT_PROXY_ADDRESS = http
SLACK_APP_TOKEN = xapp
@@ -76,4 +86,4 @@ import{_ as s,o as a,c as n,Q as o}from"./chunks/framework.3e9aee8a.js";const u=
     "gpt-4-0314",
     "gpt-4-0613",
     "gpt-4"
-]

Users can apply for API Key at Openai.

User data and usage are recorded in the Redis database sub:{user_id}.

`,83),p=[e];function t(c,r,i,d,y,E){return a(),n("div",null,p)}const F=s(l,[["render",t]]);export{u as __pageData,F as default}; +]

Users can apply for API Key at Openai.

User data and usage are recorded in the Redis database sub:{user_id}.

`,87),p=[e];function t(c,r,i,d,y,E){return a(),n("div",null,p)}const F=s(o,[["render",t]]);export{u as __pageData,F as default}; diff --git a/assets/en_guide_getting-started.md.279d47d6.lean.js b/assets/en_guide_getting-started.md.279d47d6.lean.js new file mode 100644 index 0000000..b3ba5ff --- /dev/null +++ b/assets/en_guide_getting-started.md.279d47d6.lean.js @@ -0,0 +1 @@ +import{_ as s,o as a,c as n,Q as l}from"./chunks/framework.3e9aee8a.js";const u=JSON.parse('{"title":"📝 Deployment Guide","description":"","frontmatter":{},"headers":[],"relativePath":"en/guide/getting-started.md","filePath":"en/guide/getting-started.md","lastUpdated":1697986050000}'),o={name:"en/guide/getting-started.md"},e=l("",87),p=[e];function t(c,r,i,d,y,E){return a(),n("div",null,p)}const F=s(o,[["render",t]]);export{u as __pageData,F as default}; diff --git a/assets/en_guide_getting-started.md.2ca0dc42.lean.js b/assets/en_guide_getting-started.md.2ca0dc42.lean.js deleted file mode 100644 index fcb3186..0000000 --- a/assets/en_guide_getting-started.md.2ca0dc42.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,o as a,c as n,Q as o}from"./chunks/framework.3e9aee8a.js";const u=JSON.parse('{"title":"📝 Deployment Guide","description":"","frontmatter":{},"headers":[],"relativePath":"en/guide/getting-started.md","filePath":"en/guide/getting-started.md","lastUpdated":1697979506000}'),l={name:"en/guide/getting-started.md"},e=o("",83),p=[e];function t(c,r,i,d,y,E){return a(),n("div",null,p)}const F=s(l,[["render",t]]);export{u as __pageData,F as default}; diff --git a/assets/guide_getting-started.md.98b18dd0.js b/assets/guide_getting-started.md.e9c69af5.js similarity index 90% rename from assets/guide_getting-started.md.98b18dd0.js rename to assets/guide_getting-started.md.e9c69af5.js index 4b260f6..44e8707 100644 --- a/assets/guide_getting-started.md.98b18dd0.js +++ b/assets/guide_getting-started.md.e9c69af5.js @@ -1,4 +1,4 @@ -import{_ as s,o as a,c as n,Q as l}from"./chunks/framework.3e9aee8a.js";const F=JSON.parse('{"title":"📝 部署指南","description":"","frontmatter":{},"headers":[],"relativePath":"guide/getting-started.md","filePath":"guide/getting-started.md","lastUpdated":1697979521000}'),p={name:"guide/getting-started.md"},o=l(`

📝 部署指南

📦 检查系统

请确认您的系统语言集为 UTF8,否则输入 dpkg-reconfigure locales 配置语言。

请确认您服务器的内存大于 1G, 否则使用 PM2 会无限重启。

提示

基础运行负载为,每个接收器+发送器(一个平台)约为 600MB 内存。 接收器和发送器可以分开部署,但是数据库必须共享。

🥞 自动安装

如果你在使用一台崭新的服务器,你可以使用下面的Shell来尝试自动安装本项目。

shell
curl -sSL https://raw.githubusercontent.com/LLMKira/Openaibot/main/deploy.sh | bash
curl -sSL https://raw.githubusercontent.com/LLMKira/Openaibot/main/deploy.sh | bash

🥣 Docker

shell
git clone https://github.com/LlmKira/Openaibot.git
+import{_ as s,o as a,c as n,Q as l}from"./chunks/framework.3e9aee8a.js";const F=JSON.parse('{"title":"📝 部署指南","description":"","frontmatter":{},"headers":[],"relativePath":"guide/getting-started.md","filePath":"guide/getting-started.md","lastUpdated":1697986050000}'),p={name:"guide/getting-started.md"},o=l(`

📝 部署指南

📦 检查系统

请确认您的系统语言集为 UTF8,否则输入 dpkg-reconfigure locales 配置语言。

请确认您服务器的内存大于 1G, 否则使用 PM2 会无限重启。

提示

基础运行负载为,每个接收器+发送器(一个平台)约为 600MB 内存。 接收器和发送器可以分开部署,但是数据库必须共享。

🥞 自动安装

如果你在使用一台崭新的服务器,你可以使用下面的Shell来尝试自动安装本项目。

shell
curl -sSL https://raw.githubusercontent.com/LLMKira/Openaibot/main/deploy.sh | bash
curl -sSL https://raw.githubusercontent.com/LLMKira/Openaibot/main/deploy.sh | bash

🥣 Docker

shell
git clone https://github.com/LlmKira/Openaibot.git
 cd Openaibot
 docker-compose -f docker-compose.yml -p llmbot up -d llmbot
git clone https://github.com/LlmKira/Openaibot.git
 cd Openaibot
@@ -48,7 +48,27 @@ import{_ as s,o as a,c as n,Q as l}from"./chunks/framework.3e9aee8a.js";const F=
 DISCORD_BOT_PREFIX = !
 DISCORD_BOT_PROXY_ADDRESS = socks5://
DISCORD_BOT_TOKEN = Y0NzY0NzY0NzY0NzY0NzY0.DsYQDQ.0
 DISCORD_BOT_PREFIX = !
-DISCORD_BOT_PROXY_ADDRESS = socks5://

申请 Discord Bot 请移步 官方平台

点开 oauth2/url-generator,选中权限组 bot,复制链接到浏览器打开,选择您要添加机器人的服务器,然后点击 授权

提示

目前 Discord Bot 需要 Intent 特权意象。目前我们选中了全部特权,但是我们不会使用您的数据。由于不清楚究竟使用哪些 Intent ,如果有问题,请提交修改建议。

详细信息见 官方文档 和 博客文章 Discord

🍗 Slack

Slack 平台需要您自行创建应用,然后添加到您的工作区。

ini
SLACK_APP_TOKEN = xapp
+DISCORD_BOT_PROXY_ADDRESS = socks5://

申请 Discord Bot 请移步 官方平台

点开 oauth2/url-generator,选中权限组 bot 您需要勾选的权限如下:

ini
\`Send Messages\`
+\`Read Message History\`
+\`Send Messages in Theads\`
+\`Attach Files\`
+\`Mentions Everyone\`
+\`Use Slash Command\`
\`Send Messages\`
+\`Read Message History\`
+\`Send Messages in Theads\`
+\`Attach Files\`
+\`Mentions Everyone\`
+\`Use Slash Command\`

生成,复制链接到浏览器打开,选择您要添加机器人的服务器,然后点击 授权

特权意象

打开 Bot 选项卡,打开 Message Content Intent

参加 100 个服务器以上的机器人需要批准,否则不需要。

ini
my_intents = (
+             Intents.GUILDS |
+             Intents.GUILD_MESSAGES |
+             Intents.DM_MESSAGES |
+             Intents.MESSAGE_CONTENT
+             )
my_intents = (
+             Intents.GUILDS |
+             Intents.GUILD_MESSAGES |
+             Intents.DM_MESSAGES |
+             Intents.MESSAGE_CONTENT
+             )

提示

一旦您的机器人达到 100 台或更多服务器,就需要验证和批准。 Notice

🍗 Slack

Slack 平台需要您自行创建应用,然后添加到您的工作区。

ini
SLACK_APP_TOKEN = xapp
 SLACK_BOT_TOKEN = xoxb
 SLACK_SIGNING_SECRET = xxxxxxx
 SLACK_BOT_PROXY_ADDRESS = http
SLACK_APP_TOKEN = xapp
@@ -76,4 +96,4 @@ import{_ as s,o as a,c as n,Q as l}from"./chunks/framework.3e9aee8a.js";const F=
     "gpt-4-0314",
     "gpt-4-0613",
     "gpt-4"
-]

用户可以在 Openai 申请 API Key。

用户数据和使用记录在 Redis 数据库 sub:{user_id} 中。

`,83),e=[o];function t(c,r,i,E,y,d){return a(),n("div",null,e)}const u=s(p,[["render",t]]);export{F as __pageData,u as default}; +]

用户可以在 Openai 申请 API Key。

用户数据和使用记录在 Redis 数据库 sub:{user_id} 中。

`,89),e=[o];function t(c,r,i,E,y,d){return a(),n("div",null,e)}const u=s(p,[["render",t]]);export{F as __pageData,u as default}; diff --git a/assets/guide_getting-started.md.98b18dd0.lean.js b/assets/guide_getting-started.md.e9c69af5.lean.js similarity index 71% rename from assets/guide_getting-started.md.98b18dd0.lean.js rename to assets/guide_getting-started.md.e9c69af5.lean.js index a92d380..4e5d1f7 100644 --- a/assets/guide_getting-started.md.98b18dd0.lean.js +++ b/assets/guide_getting-started.md.e9c69af5.lean.js @@ -1 +1 @@ -import{_ as s,o as a,c as n,Q as l}from"./chunks/framework.3e9aee8a.js";const F=JSON.parse('{"title":"📝 部署指南","description":"","frontmatter":{},"headers":[],"relativePath":"guide/getting-started.md","filePath":"guide/getting-started.md","lastUpdated":1697979521000}'),p={name:"guide/getting-started.md"},o=l("",83),e=[o];function t(c,r,i,E,y,d){return a(),n("div",null,e)}const u=s(p,[["render",t]]);export{F as __pageData,u as default}; +import{_ as s,o as a,c as n,Q as l}from"./chunks/framework.3e9aee8a.js";const F=JSON.parse('{"title":"📝 部署指南","description":"","frontmatter":{},"headers":[],"relativePath":"guide/getting-started.md","filePath":"guide/getting-started.md","lastUpdated":1697986050000}'),p={name:"guide/getting-started.md"},o=l("",89),e=[o];function t(c,r,i,E,y,d){return a(),n("div",null,e)}const u=s(p,[["render",t]]);export{F as __pageData,u as default}; diff --git a/dev/arch.html b/dev/arch.html index f45204f..bb43efe 100644 --- a/dev/arch.html +++ b/dev/arch.html @@ -18,7 +18,7 @@
Skip to content

Released under the GFDL License.

- + \ No newline at end of file diff --git a/dev/basic.html b/dev/basic.html index ad2cdef..6db075d 100644 --- a/dev/basic.html +++ b/dev/basic.html @@ -294,7 +294,7 @@ uses: JRubics/poetry-publish@v1.16 with: pypi_token: ${{ secrets.PYPI_TOKEN }}

仓库主界面右下角新建 Release, 新建 v 开头的标签,创建后即可触发自动发布。

- + \ No newline at end of file diff --git a/dev/client.html b/dev/client.html index 4e686ba..9fe9a48 100644 --- a/dev/client.html +++ b/dev/client.html @@ -18,7 +18,7 @@
Skip to content

Released under the GFDL License.

- + \ No newline at end of file diff --git a/dev/middleware.html b/dev/middleware.html index cc85b1e..3773a49 100644 --- a/dev/middleware.html +++ b/dev/middleware.html @@ -170,7 +170,7 @@ pass

🥞 ENV

python
_env_dict = await EnvManager.from_uid(uid=_task.receiver.uid).get_env_list(name_list=_tool_obj.env_required)
 assert isinstance(_env_dict, dict), "env_dict must be dict"
_env_dict = await EnvManager.from_uid(uid=_task.receiver.uid).get_env_list(name_list=_tool_obj.env_required)
 assert isinstance(_env_dict, dict), "env_dict must be dict"
- + \ No newline at end of file diff --git a/en/dev/arch.html b/en/dev/arch.html index 36d4d52..f00e113 100644 --- a/en/dev/arch.html +++ b/en/dev/arch.html @@ -18,7 +18,7 @@
Skip to content

Released under the GFDL License.

- + \ No newline at end of file diff --git a/en/dev/basic.html b/en/dev/basic.html index 4f79d6b..b69b492 100644 --- a/en/dev/basic.html +++ b/en/dev/basic.html @@ -292,7 +292,7 @@ uses: JRubics/poetry-publish@v1.16 with: pypi_token: ${{ secrets.PYPI_TOKEN }}

Create a new Release in the lower right corner of the main interface of the warehouse, and create a new tag starting with v. Once created, automatic release can be triggered.

- + \ No newline at end of file diff --git a/en/dev/client.html b/en/dev/client.html index 8bd9a78..8b5fc8f 100644 --- a/en/dev/client.html +++ b/en/dev/client.html @@ -18,7 +18,7 @@
Skip to content

Released under the GFDL License.

- + \ No newline at end of file diff --git a/en/dev/middleware.html b/en/dev/middleware.html index 2fc9642..5e2050e 100644 --- a/en/dev/middleware.html +++ b/en/dev/middleware.html @@ -172,7 +172,7 @@ assert isinstance(_env_dict, dict), "env_dict must be dict"
async def main():
     _env_dict = await EnvManager.from_uid(uid=_task.receiver.uid).get_env_list(name_list=_tool_obj.env_required)
     assert isinstance(_env_dict, dict), "env_dict must be dict"
- + \ No newline at end of file diff --git a/en/guide/command.html b/en/guide/command.html index cdfa208..2c367bf 100644 --- a/en/guide/command.html +++ b/en/guide/command.html @@ -44,7 +44,7 @@ ask - just answer
chat - chat
 task - task
 ask - just answer

Among them, chat mode is the default mode, task mode enables function response, and ask mode disables function response.

🧁 ENV

shell
env - virtual environment settings
env - virtual environment settings

This command provides an interactive env between the plugin and the user. The user can submit the constants required by the plugin through this command.

For example /env VAR=551;VAR2=asdasd;VAR3="1231"

All input will be formatted and upper.

🍭 Binding and unbinding

This command is just a subscription command, used to subscribe to RSS messages.

In order to reflect the cross-platform characteristics, it actually has no effect.

- + \ No newline at end of file diff --git a/en/guide/getting-started.html b/en/guide/getting-started.html index fba735c..f962355 100644 --- a/en/guide/getting-started.html +++ b/en/guide/getting-started.html @@ -11,7 +11,7 @@ - + @@ -67,7 +67,17 @@ DISCORD_BOT_PREFIX = ! DISCORD_BOT_PROXY_ADDRESS = socks5://
DISCORD_BOT_TOKEN = Y0NzY0NzY0NzY0NzY0NzY0.DsYQDQ.0
 DISCORD_BOT_PREFIX = !
-DISCORD_BOT_PROXY_ADDRESS = socks5://

To apply for Discord Bot, please go to Official Platform

Click on oauth2/url-generator, select the permission group bot, copy the link to the browser and open it, select the server where you want to add the robot, and then click Authorize.

Here!

Discord Bot currently requires the Intent privileged image. Currently we have all privileges checked, but we will not use your data.

Since i am not clear exactly which Intents to use , if you have any idea, please submit suggestions for modification.

For details, see Official Documentation and Blog article Discord

🍗 Slack

The Slack platform requires you to create the app yourself and then add it to your workspace.

ini
SLACK_APP_TOKEN = xapp
+DISCORD_BOT_PROXY_ADDRESS = socks5://

To apply for Discord Bot, please go to Official Platform

Click on OAuth2 URL Generator sheet, select the permission group bot, then select Send Messages and Read Message History,Send Messages in Theads Attach Files Mentions Everyone Use Slash Command

Copy the link to the browser and open it, select the server where you want to add the robot, and then click Authorize.

Intents Apply

Open the bot page,Turn on Message Content Intent

ini
my_intents = (
+             Intents.GUILDS |
+             Intents.GUILD_MESSAGES |
+             Intents.DM_MESSAGES |
+             Intents.MESSAGE_CONTENT
+             )
my_intents = (
+             Intents.GUILDS |
+             Intents.GUILD_MESSAGES |
+             Intents.DM_MESSAGES |
+             Intents.MESSAGE_CONTENT
+             )

Here!

Once your bot reaches 100 or more servers, this will require verification and approval. Notice

🍗 Slack

The Slack platform requires you to create the app yourself and then add it to your workspace.

ini
SLACK_APP_TOKEN = xapp
 SLACK_BOT_TOKEN = xoxb
 SLACK_SIGNING_SECRET = xxxxxxx
 SLACK_BOT_PROXY_ADDRESS = http
SLACK_APP_TOKEN = xapp
@@ -95,8 +105,8 @@
     "gpt-4-0314",
     "gpt-4-0613",
     "gpt-4"
-]

Users can apply for API Key at Openai.

User data and usage are recorded in the Redis database sub:{user_id}.

- +]

Users can apply for API Key at Openai.

User data and usage are recorded in the Redis database sub:{user_id}.

+ \ No newline at end of file diff --git a/en/guide/maintain.html b/en/guide/maintain.html index d775583..1f66ad6 100644 --- a/en/guide/maintain.html +++ b/en/guide/maintain.html @@ -18,7 +18,7 @@
Skip to content

Released under the GFDL License.

- + \ No newline at end of file diff --git a/en/guide/service.html b/en/guide/service.html index ff26e7c..30e4f36 100644 --- a/en/guide/service.html +++ b/en/guide/service.html @@ -18,7 +18,7 @@
Skip to content

Service

Backup Database

TODO

Released under the GFDL License.

- + \ No newline at end of file diff --git a/en/index.html b/en/index.html index 37ab4d4..8e16ef5 100644 --- a/en/index.html +++ b/en/index.html @@ -18,7 +18,7 @@
Skip to content

Openaibot

Development guides and tutorials.

LLM-based Chain Message ChatBot framework

Released under the GFDL License.

- + \ No newline at end of file diff --git a/guide/command.html b/guide/command.html index 885e4b0..58ea2d3 100644 --- a/guide/command.html +++ b/guide/command.html @@ -44,7 +44,7 @@ ask - 问答
chat - 聊天
 task - 任务
 ask - 问答

其中 chat 模式是默认模式,task 模式启用函数响应,ask 模式则禁用函数响应。

🧁 虚拟环境

shell
env - 虚拟环境设置
env - 虚拟环境设置

此命令为插件和用户间提供了一个交互环境,用户可以通过此命令提交插件需要的常量。

比如 /env VAR=551;VAR2=asdasd;VAR3="1231"

所有值会被自动格式化并大写。

🍭 绑定和解绑

此命令只是一个订阅命令而已,用于订阅 RSS 消息。

为了体现跨平台的特性,实际并没有什么作用。

- + \ No newline at end of file diff --git a/guide/getting-started.html b/guide/getting-started.html index 87a429f..3738ee6 100644 --- a/guide/getting-started.html +++ b/guide/getting-started.html @@ -11,7 +11,7 @@ - + @@ -67,7 +67,27 @@ DISCORD_BOT_PREFIX = ! DISCORD_BOT_PROXY_ADDRESS = socks5://
DISCORD_BOT_TOKEN = Y0NzY0NzY0NzY0NzY0NzY0.DsYQDQ.0
 DISCORD_BOT_PREFIX = !
-DISCORD_BOT_PROXY_ADDRESS = socks5://

申请 Discord Bot 请移步 官方平台

点开 oauth2/url-generator,选中权限组 bot,复制链接到浏览器打开,选择您要添加机器人的服务器,然后点击 授权

提示

目前 Discord Bot 需要 Intent 特权意象。目前我们选中了全部特权,但是我们不会使用您的数据。由于不清楚究竟使用哪些 Intent ,如果有问题,请提交修改建议。

详细信息见 官方文档 和 博客文章 Discord

🍗 Slack

Slack 平台需要您自行创建应用,然后添加到您的工作区。

ini
SLACK_APP_TOKEN = xapp
+DISCORD_BOT_PROXY_ADDRESS = socks5://

申请 Discord Bot 请移步 官方平台

点开 oauth2/url-generator,选中权限组 bot 您需要勾选的权限如下:

ini
`Send Messages`
+`Read Message History`
+`Send Messages in Theads`
+`Attach Files`
+`Mentions Everyone`
+`Use Slash Command`
`Send Messages`
+`Read Message History`
+`Send Messages in Theads`
+`Attach Files`
+`Mentions Everyone`
+`Use Slash Command`

生成,复制链接到浏览器打开,选择您要添加机器人的服务器,然后点击 授权

特权意象

打开 Bot 选项卡,打开 Message Content Intent

参加 100 个服务器以上的机器人需要批准,否则不需要。

ini
my_intents = (
+             Intents.GUILDS |
+             Intents.GUILD_MESSAGES |
+             Intents.DM_MESSAGES |
+             Intents.MESSAGE_CONTENT
+             )
my_intents = (
+             Intents.GUILDS |
+             Intents.GUILD_MESSAGES |
+             Intents.DM_MESSAGES |
+             Intents.MESSAGE_CONTENT
+             )

提示

一旦您的机器人达到 100 台或更多服务器,就需要验证和批准。 Notice

🍗 Slack

Slack 平台需要您自行创建应用,然后添加到您的工作区。

ini
SLACK_APP_TOKEN = xapp
 SLACK_BOT_TOKEN = xoxb
 SLACK_SIGNING_SECRET = xxxxxxx
 SLACK_BOT_PROXY_ADDRESS = http
SLACK_APP_TOKEN = xapp
@@ -95,8 +115,8 @@
     "gpt-4-0314",
     "gpt-4-0613",
     "gpt-4"
-]

用户可以在 Openai 申请 API Key。

用户数据和使用记录在 Redis 数据库 sub:{user_id} 中。

- +]

用户可以在 Openai 申请 API Key。

用户数据和使用记录在 Redis 数据库 sub:{user_id} 中。

+ \ No newline at end of file diff --git a/guide/maintain.html b/guide/maintain.html index a4958e4..169759c 100644 --- a/guide/maintain.html +++ b/guide/maintain.html @@ -18,7 +18,7 @@
Skip to content

Released under the GFDL License.

- + \ No newline at end of file diff --git a/guide/service.html b/guide/service.html index dbde5c5..f7771ee 100644 --- a/guide/service.html +++ b/guide/service.html @@ -18,7 +18,7 @@
Skip to content

Released under the GFDL License.

- + \ No newline at end of file diff --git a/hashmap.json b/hashmap.json index 72f0132..50807d6 100644 --- a/hashmap.json +++ b/hashmap.json @@ -1 +1 @@ -{"index.md":"067e3003","guide_service.md":"12535757","guide_getting-started.md":"98b18dd0","en_dev_middleware.md":"b223c2c8","guide_maintain.md":"971518ca","en_dev_arch.md":"91621479","en_dev_basic.md":"916b1770","en_guide_getting-started.md":"2ca0dc42","guide_command.md":"3fdc99d9","en_guide_maintain.md":"1c276d99","en_index.md":"408c5177","en_guide_service.md":"100a3add","dev_basic.md":"503b541a","dev_middleware.md":"03724627","dev_arch.md":"a548935d","dev_client.md":"77bb1287","en_dev_client.md":"aafa3ec8","en_guide_command.md":"af3cf1df"} +{"en_dev_basic.md":"916b1770","dev_client.md":"77bb1287","guide_maintain.md":"971518ca","index.md":"067e3003","dev_middleware.md":"03724627","en_dev_arch.md":"91621479","en_dev_middleware.md":"b223c2c8","dev_arch.md":"a548935d","en_index.md":"408c5177","en_dev_client.md":"aafa3ec8","en_guide_maintain.md":"1c276d99","guide_getting-started.md":"e9c69af5","en_guide_getting-started.md":"279d47d6","dev_basic.md":"503b541a","guide_command.md":"3fdc99d9","en_guide_service.md":"100a3add","guide_service.md":"12535757","en_guide_command.md":"af3cf1df"} diff --git a/index.html b/index.html index 37810be..e271ce0 100644 --- a/index.html +++ b/index.html @@ -18,7 +18,7 @@
Skip to content

Openaibot

开发部署指南和教程

链式对话代理机器人平台

Released under the GFDL License.

- + \ No newline at end of file