1 Star 1 Fork 0

d6e3032b / XyzB0ts

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

XyzB0ts

一个简单的bot框架
通过简单的约定实现了对不同bot接口的统一抽象,实现了在一个框架中运行多个相同或不同的bot
通过简单的api能够快速的进行bot功能的开发

框架主要功能

  1. 插件支持
  2. 基于角色的权限控制

支持的bot

  1. mirai-api-http
  2. kaiheila(api较少 需要自己加adapter)

BOT的开黑啦频道

邀请链接

快速开始

BOT部署
插件制作

一些链接

ADAPTER说明

一个简单的插件实现

在群中输入/hello时bot将发送hello

from botsdk.util.BotPlugin import BotPlugin


class handle(BotPlugin):
    def onLoad(self):
        self.name = "hello"
        self.addBotType("Mirai")
        self.addTarget("GroupMessage", "hello", self.hello)

    async def hello(self, request):
        "hello #hello"
        await request.sendMessage("hello")

鸣谢

mirai来自mirai-api-http
kaiheila来自kaiheila
plugins.pixiv使用了hibiapi
plugins.saucenao使用了saucenao
mirlkoi来自MirlKoi

Gitee地址

Gitee

MIT License Copyright (c) 2021 MN1XYZ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

基于mirai-api-http的bot框架 展开 收起
Python
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/d6e3032b/XyzB0ts.git
git@gitee.com:d6e3032b/XyzB0ts.git
d6e3032b
XyzB0ts
XyzB0ts
main

搜索帮助