Categorygithub.com/huoxue1/leafBot
modulepackage
2.0.0+incompatible
Repository: https://github.com/huoxue1/leafbot.git
Documentation: pkg.go.dev

# README

LeafBot

LeafBot

✨ 基于 go-cqhttp,使用OneBot标准的插件 ✨

cqhttp


已添加windows的gui界面,前提是基于chorme引擎

特别感谢wdvxdr1123大佬的CQ码解析和消息部分

安装

    go get github.com/3343780376/leafBot

插件仓库已移动到leafBotPlugin,若需使用内置插件,请查看该仓库

特别感谢

wdvxdr1123/ZeroBot <借鉴思路>

Mrs4s/go-cqhttp <onebot实现>

nonebot/nonebot2 <流程借鉴>

示例

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

BanPluginByID* * @Description: 根据id禁用插件 * @param id */.
BanPluginByName* * @Description: 禁用某个插件 * @param name 插件名 * @return int 禁用的插件个数 */.
No description provided by the author
GetBotById @Description: @param id int @return *Bot */.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetLogLevel @Description: @param level string @return log.Level */.
InitBots @Description: */.
No description provided by the author
No description provided by the author
No description provided by the author
OnCommand* * @Description: command触发handle * @param 该插件响应的命令 * @return *commandHandle * example leafBot.OnCommand("天气").
OnConnect* * @Description: 在bot进行连接使响应 * @return *connectHandle * example */.
OnDisConnect* * @Description: 在bot断开连接时进行响应 * @return *disConnectHandle * example */.
No description provided by the author
No description provided by the author
OnlySuperUser* * @Description: 加了该rule的插件只会对配置文件中配置的管理员用户进行响应 * @param event leafBot event * @param bot bot实例对象 * @return bool 是否通过该rule验证 * example */.
OnlyToMe* * @Description: 添加了该rule的插件需要在群里艾特或者私聊才会进行响应 * @param event leafBot event * @param bot bot实例对象 * @return bool 返回是否验证通过该rule * example */.
OnMessage* * @Description: message事件触发handle * @param messageType message事件的子类型 * @return *messageHandle * example */.
OnMeta* * @Description: 元事件触发handle * @return *metaHandle * example */.
OnNotice* * @Description: notice触发handle * @param noticeType notice事件类型 * @return *noticeHandle * example 响应戳一戳事件的示例 leafBot.OnNotice(leafBot.NoticeTypeApi.Notify).
OnPretreatment* * @Description: 预处理事件 * @return *PretreatmentHandle * example */.
No description provided by the author
OnRequest* * @Description: request事件触发handle * @param requestType request事件的子类型 * @return *requestHandle * example */.
No description provided by the author
StartPlugin* * @Description: 启用某个插件 * @param name 插件名 * @return int 启用插件个数 */.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
是否启用gui.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
State @Description: sdk处理消息后将内容传递给plugin .
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IncreaseApi /* @Description: */.
M 通过id从插件列表获取插件 所有的插件队列都实现了该接口 */.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author