mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-14 05:32:52 +08:00
Some checks failed
检查bot是否运行正常 / bot check (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
Sequential Lint and Type Check / ruff-call (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Force Sync to Aliyun / sync (push) Has been cancelled
Update Version / update-version (push) Has been cancelled
Sequential Lint and Type Check / pyright-call (push) Has been cancelled
* 转换specify_probability为float * 解决#2045 添加密钥配置 * Revise access token configuration in .env.example Updated comments and modified access token configuration. --------- Co-authored-by: HibiKier <45528451+HibiKier@users.noreply.github.com>
94 lines
1.9 KiB
Plaintext
94 lines
1.9 KiB
Plaintext
SUPERUSERS=[""]
|
||
|
||
COMMAND_START=[""]
|
||
|
||
SESSION_RUNNING_EXPRESSION="别急呀,小真寻要宕机了!QAQ"
|
||
|
||
NICKNAME=["真寻", "小真寻", "绪山真寻", "小寻子"]
|
||
|
||
SESSION_EXPIRE_TIMEOUT=00:00:30
|
||
|
||
ALCONNA_USE_COMMAND_START=True
|
||
|
||
# ws连接密钥,若bot能被公网访问则建议打开该注释并设置该配置项
|
||
# ONEBOT_ACCESS_TOKEN=""
|
||
|
||
# 全局图片统一使用bytes发送,当真寻与协议端不在同一服务器上时为True
|
||
IMAGE_TO_BYTES = True
|
||
|
||
# 回复消息时自称
|
||
SELF_NICKNAME="小真寻"
|
||
|
||
# 官bot appid:bot账号
|
||
QBOT_ID_DATA = '{
|
||
|
||
}'
|
||
|
||
# 数据库配置
|
||
# 示例: "postgres://user:password@127.0.0.1:5432/database"
|
||
# 示例: "mysql://user:password@127.0.0.1:3306/database"
|
||
# 示例: "sqlite:data/db/zhenxun.db" 在data目录下建立db文件夹
|
||
DB_URL = ""
|
||
|
||
# NONE: 不使用缓存, MEMORY: 使用内存缓存, REDIS: 使用Redis缓存
|
||
CACHE_MODE = NONE
|
||
|
||
# REDIS配置,使用REDIS替换Cache内存缓存
|
||
# REDIS地址
|
||
# REDIS_HOST = "127.0.0.1"
|
||
# REDIS端口
|
||
# REDIS_PORT = 6379
|
||
# REDIS密码
|
||
# REDIS_PASSWORD = ""
|
||
# REDIS过期时间
|
||
# REDIS_EXPIRE = 600
|
||
|
||
# 系统代理
|
||
# SYSTEM_PROXY = "http://127.0.0.1:7890"
|
||
|
||
PLATFORM_SUPERUSERS = '
|
||
{
|
||
"qq": [""],
|
||
"dodo": [""]
|
||
}
|
||
'
|
||
|
||
DRIVER=~fastapi+~httpx+~websockets
|
||
|
||
|
||
# LOG_LEVEL = DEBUG
|
||
# 服务器和端口
|
||
HOST = 127.0.0.1
|
||
PORT = 8080
|
||
|
||
# kook adapter toekn
|
||
# kaiheila_bots =[{"token": ""}]
|
||
|
||
# # discode adapter
|
||
# DISCORD_BOTS='
|
||
# [
|
||
# {
|
||
# "token": "",
|
||
# "intent": {
|
||
# "guild_messages": true,
|
||
# "direct_messages": true
|
||
# },
|
||
# "application_commands": {"*": ["*"]}
|
||
# }
|
||
# ]
|
||
# '
|
||
# DISCORD_PROXY=''
|
||
|
||
# # dodo adapter
|
||
# DODO_BOTS='
|
||
# [
|
||
# {
|
||
# "client_id": "",
|
||
# "token": ""
|
||
# }
|
||
# ]
|
||
# '
|
||
|
||
# application_commands的{"*": ["*"]}代表将全部应用命令注册为全局应用命令
|
||
# {"admin": ["123", "456"]}则代表将admin命令注册为id是123、456服务器的局部命令,其余命令不注册
|