mirror of
https://github.com/awfufu/go-hurobot.git
synced 2026-03-01 13:39:42 +08:00
41 lines
1020 B
Bash
Executable File
41 lines
1020 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# NapCat WebSocket 服务器地址和 Token
|
|
export NAPCAT_HOST='127.0.0.1:3001'
|
|
export ACCESS_TOKEN='token-for-napcat'
|
|
|
|
# 机器人主人QQ号
|
|
export MASTER_ID=''
|
|
|
|
# 机器人QQ号
|
|
export BOT_ID=''
|
|
|
|
# Postgres 数据库配置 AI 对话读取历史记录使用
|
|
# Postgres 配置请查看 docker/docker-compose.yml
|
|
export PSQL_HOST='127.0.0.1'
|
|
export PSQL_PORT='5432'
|
|
export PSQL_USER='hurobot'
|
|
export PSQL_PASSWORD='hurobot'
|
|
export PSQL_DBNAME='hurobot'
|
|
|
|
# 硅基流动 API
|
|
export API_KEY='sk-'
|
|
|
|
# Exchange Rate API 配置,用于 fx 命令
|
|
# 参考 https://www.exchangerate-api.com/docs/
|
|
export EXCHANGE_RATE_API_KEY=''
|
|
|
|
# 长桥证券 API 配置,用于 stock 命令
|
|
# 参考 https://open.longportapp.com/docs/
|
|
export LONGPORT_APP_KEY=''
|
|
export LONGPORT_APP_SECRET=''
|
|
export LONGPORT_ACCESS_TOKEN=''
|
|
export LONGPORT_REGION='cn'
|
|
export LONGPORT_ENABLE_OVERNIGHT='false'
|
|
|
|
# OKX 镜像 API 配置,用于 stock 命令
|
|
# 参考 https://www.okx.com/docs-v5/
|
|
export OKX_MIRROR_API_KEY=''
|
|
|
|
/path/to/go-hurobot
|