基于 ZeroBot 的 OneBot 插件
Go to file
2021-04-21 00:27:27 +08:00
.github 📝 更新 README 2021-04-01 14:51:42 +08:00
atri 增加椛椛词库 2021-04-20 15:39:49 +08:00
chat ✏️ 一些小改动 2021-04-20 23:39:19 +08:00
github ✏️ 更改搜索 GitHub 仓库命令 2021-04-17 16:21:27 +08:00
huahua 增加椛椛词库 2021-04-20 15:39:49 +08:00
manager 🎨 改进代码结构 2021-04-12 18:48:12 +08:00
music 🎨 改进代码结构 2021-04-12 18:48:12 +08:00
runcode ✏️ 防止 \r 换行文本过长刷屏 2021-04-20 16:16:08 +08:00
setutime ✏️ 一些小改动 2021-04-20 23:39:19 +08:00
shindan 🐛 修复直接使用昵称无法触发回复的问题 2021-04-18 23:04:53 +08:00
.gitignore ✏️ 修复个别碧油鸡 2021-03-13 18:34:54 +08:00
build.bat 增加椛椛词库 2021-04-20 15:39:49 +08:00
go.mod 升级 ZeroBot 到版本 v1.1.2 2021-04-12 18:48:40 +08:00
go.sum 升级 ZeroBot 到版本 v1.1.2 2021-04-12 18:48:40 +08:00
LICENSE 📄 使用 GPL v3 2021-04-21 00:27:27 +08:00
main.go 增加椛椛词库 2021-04-20 15:39:49 +08:00
README.md ✏️ 一些小改动 2021-04-20 23:39:19 +08:00
run.bat 增加运行bat 2021-04-20 23:38:52 +08:00

OneBot-YaYa

ZeroBot-Plugin

ZeroBot-Plugin 是 ZeroBot 的 实用插件合集

YAYA GOCQ OICQ MIRAI

Go Report Card Badge Badge License qq group

功能

  • 聊天 import _ "github.com/Yiwen-Chan/ZeroBot-Plugin/chat"
    • [BOT名字]
    • [戳一戳BOT]
    • 空调开
    • 空调关
    • 群温度
    • 设置温度[正整数]
  • 椛椛 import _ "github.com/Yiwen-Chan/ZeroBot-Plugin/huahua"
    • 具体指令看代码
  • ATRI import _ "github.com/Yiwen-Chan/ZeroBot-Plugin/atri"
    • 具体指令看代码
    • 注:本插件基于 ATRI ,为 Golang 移植版
  • 群管 import _ "github.com/Yiwen-Chan/ZeroBot-Plugin/manager"
    • 禁言[@xxx][分钟]
    • 解除禁言[@xxx]
    • 我要自闭 [分钟]
    • 开启全员禁言
    • 解除全员禁言
    • 升为管理[@xxx]
    • 取消管理[@xxx]
    • 修改名片[@xxx][xxx]
    • 修改头衔[@xxx][xxx]
    • 申请头衔[xxx]
    • 踢出群聊[@xxx]
    • 退出群聊[群号]
    • *入群欢迎
    • *退群通知
    • 同意入群请求
    • 同意好友请求
    • 撤回[@xxx] [xxx]
    • 警告[@xxx]
    • run[xxx]
  • 涩图 import _ "github.com/Yiwen-Chan/ZeroBot-Plugin/setutime"
    • 搜索图片[P站图片ID]
    • 搜索图片[图片]
    • 来份[涩图/二次元/风景/车万]
    • 添加[涩图/二次元/风景/车万][P站图片ID]
    • 删除[涩图/二次元/风景/车万][P站图片ID]
    • >setu status
    • >setu xml
    • >setu pic
  • 点歌 import _ "github.com/Yiwen-Chan/ZeroBot-Plugin/music"
    • 点歌[xxx]
    • 网易点歌[xxx]
    • 酷我点歌[xxx]
    • 酷狗点歌[xxx]
  • shindan import _ "github.com/Yiwen-Chan/ZeroBot-Plugin/shindan"
    • 今天是什么少女[@xxx]
    • 异世界转生[@xxx]
    • 卖萌[@xxx]
  • GitHub仓库搜索 import _ "github.com/Yiwen-Chan/ZeroBot-Plugin/github"
    • >github [xxx]
  • 在线代码运行 import _ "github.com/Yiwen-Chan/ZeroBot-Plugin/runcode"
    • >runcode help
    • >runcode [on/off]
    • >runcode [language] [code block]
  • TODO...

使用方法

本项目符合 OneBot 标准,可基于以下项目与机器人框架/平台进行交互

项目地址 平台 核心作者 备注
Yiwen-Chan/OneBot-YaYa 先驱 kanri
richardchien/coolq-http-api CKYU richardchien 可在 Mirai 平台使用 mirai-native 加载
Mrs4s/go-cqhttp MiraiGo Mrs4s
yyuueexxiinngg/cqhttp-mirai Mirai yyuueexxiinngg
takayama-lily/onebot OICQ takayama

本地编译

  1. 下载安装 Go 环境
  2. 下载安装 TDM-GCC 或 MinGW并添加到环境变量
  3. clone 本项目,本地解压
  4. 编辑 main.go 文件,内容按需修改
  5. 双击点击 build.bat 文件
  6. 运行Onebot框架并同时运行本插件

利用 Actions 在线编译 (推荐)

  1. 点击右上角 Fork 本项目,并转跳到自己 Fork 的仓库
  2. 点击仓库上方的 Actions 按钮,确认使用 Actions
  3. 编辑 main.go 文件,内容按需修改,返回仓库
  4. 点击 Actions 按钮,等待编译完成,在 Actions 里下载编译好的文件
  5. 运行Onebot框架并同时运行本插件
  6. 啾咪~

特别感谢