Skip to content

Rehtt/Furbot-MiraiGo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Furbot-MiraiGo

Go Report Card

移植于Furbot-Mirai的go开源版本

基于MiraiGo-Template开发

安装

直接安装

go install github.com/Rehtt/Furbot-MiraiGo@latest
Furbot-MiraiGo

OR

git clone https://github.com/Rehtt/Furbot-MiraiGo
cd Furbot-MiraiGo
go install
Furbot-MiraiGo

OR

git clone https://github.com/Rehtt/Furbot-MiraiGo
cd Furbot-MiraiGo
go build .
./Furbot-MiraiGo

Docker

git clone https://github.com/Rehtt/Furbot-MiraiGo
cd Furbot-MiraiGo
docker build -t furbot:test-1 .
docker run -d -v ./furbot.yaml:/opt/furbot.yaml furbot:test-1

作为模块安装(基于MiraiGo-Template二次开发)

在适当位置引入

package main
import (
	//...
    _ "github.com/Rehtt/Furbot-MiraiGo/furbot"
	//...
)

参考main.go

作为插件(golang plugin)

使用插件模式需要使用cgo,只支持linux,并且不能交叉编译

因为插件需要重新打包,所以总体积会比模块模式大,但更灵活

执行命令:

go build -tags plugin -o Furbot-MiraiGo .
cd furbot/pluginMode
go build -buildmode=plugin -o furbot.so .
cd -
./Furbot-MiraiGo -p furbot/pluginMode/furbot.so

使用

第一次运行时会自动生成furbot.yaml文件,修改后再次运行即可 文件内容详解:

#此处填写申请开源版地址的QQ号码
qq: 0

#此处填写申请开源版地址的授权码
authKey: 0

#是否响应私聊消息 true 响应  false 不响应
responseFriend: true

#是否响应群聊消息
responseGroup: true

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published