Giter Site home page Giter Site logo

hyper_bot's Introduction

icon HypeR Bot

适配OneBot v11协议、功能模块化、易于扩展、高效的QQ机器人及框架

Badge Badge

概览

HypeR Bot是一个适配OneBot协议的机器人框架,旨在提供一个简洁、高效、可扩展的机器人运行结构。

点我跳转详细文档

配置文件

config.json:

{
  "owner": [
    
  ],
  "black_list": [],
  "Connection": {
    "host": "127.0.0.1",
    "port": 5004
  },
  "Log_level": "INFO",
  "protocol": "Inner",
  "Others": {
    "Chat": {
      "Qwen": {
        "key": "key"
      }
    },
    "uin": 0
  }
}

其中:

  • owner:机器人主人的QQ号,填写在这个列表中的QQ号会被标记is_owner = True
  • black_list:黑名单,填写在这个列表中的QQ号的消息不会被任何模块处理;
  • Connection:连接信息,包括主机地址和端口;
  • Log_level:日志等级,可选值为DEBUGTRACEINFOWARNINGERRORCRITICAL
  • Others:其他配置项,这里的内容应当由各个功能模块的作者指定,示例中的Chat是用于实现调用通义千问聊天功能的模块,其配置项为Qwen
  • uin:使用Inner协议是需要;
  • protocol:适配的协议。设置为“Inner”即使用内置的Lagrange-Python客户端,设置为“OneBot”即与OneBot对接

环境

本人开发和测试均在Python 3.11.7环境进行,其他版本未经测试。

所需的第三方库陈列在requirements.txt中,使用pip install -r requirements.txt即可。

hyper_bot's People

Contributors

harcicyang avatar

Stargazers

 avatar liuqinyu avatar 校溯 avatar 姜胤 avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.