根据Furbot-MiraiGo 反推出的服务端,兼容Furbot-Mirai
go install github.com/Rehtt/FurbotServer-Go@latest
FurbotServer-GoOR
git clone github.com/Rehtt/FurbotServer-Go
cd FurbotServer-Go
go install
FurbotServer-GoOR
git clone github.com/Rehtt/FurbotServer-Go
cd FurbotServer-Go
go build .
./FurbotServer-Go修改配置文件,启动程序FurbotServer-Go
可以使用参数指定配置文件路径:FurbotServer-Go -c ./config.yaml
图片暂时保存在本地,以后会添加其他存储方式 咕咕咕
配置文件内容:
# 服务监听
server:
addr: 0.0.0.0
port: 80
# 管理员密钥
authKey: Xz0aCixrjL8hgIAG
imagePath: "./image" # 图片存储路径(暂时存在本地)
db:
use: mysql # 选择数据库,mysql与sqlite 二选一
mysql: # mysql 配置
addr: 127.0.0.1
username: root
password: root
port: 3306
database: test
sqlite: # sqlite配置
path: ./database.db