Giter Site home page Giter Site logo

qslotus / march7th Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mar-7th/march7th

0.0 0.0 0.0 7.71 MB

March7th - 基于 NoneBot2 的崩坏:星穹铁道多功能机器人 Honkai: Star Rail bot based on NoneBot2.

Home Page: https://march7th.xiaohei.moe

License: GNU Affero General Public License v3.0

Python 100.00%

march7th's Introduction

March7th

OneBot OneBot QQ

QQ Chat Grop

崩坏:星穹铁道多功能机器人(开发中),目前支持账号绑定、信息查询、Wiki 查询等功能。

本项目基于 Nonebot2,通过 nonebot-plugin-send-anything-anywhere 实现对 OneBot v11, OneBot v12, QQ Guild, 开黑啦, Telegram, Feishu, Red 适配器的支持;使用 nonebot-plugin-datastore 进行插件数据管理。

安装

如果未安装 poetry,先参考 文档 安装。

使用 git clone https://github.com/Mar-7th/March7th.git下载压缩包 并解压,进入工程目录。

使用 poetry install 安装项目依赖。

配置协议实现端。

配置运行环境参数(可复制 .env 文件到 .env.prod 后填入参数)。

使用 nb run 运行 Bot 程序。

发送命令 srhelp 即可查看命令列表。

常见问题

添加公共 cookie

添加公共 cookie 后,用户可以无需绑定 cookie 就能使用 srinfo

添加公共 cookie 需要 SUPERUSER 权限,发送 srpck [cookie],将 [cookie] 替换为实际的 cookie 内容。

协议端配置

QQ 机器人

需要在项目根目录运行命令 nb adapter install nonebot-adapter-qq

然后参考 QQ 适配器文档 进行适配器配置。

Shamrock

参考 Shamrock 文档 进行协议端安装与配置。

Chronocat

参考 Chronocat 文档 进行协议端安装与配置。

需要在项目根目录运行命令 nb adapter install nonebot-adapter-red

然后参考 Red 适配器文档 进行适配器配置。

go-cqhttp

此方式不推荐新搭建 Bot 使用,请参考 迁移建议

在项目根目录运行命令 nb plugin install gocqhttp

运行 Bot 程序后根据提示在网页端进行账号配置。

链接

本项目参考以下项目完成:

项目 / 插件名 描述 使用方式
Mar-7th/StarRailRes 崩坏:星穹铁道资源库 Icon 及攻略资源
CMHopeSunshine/LittlePaimon 小派蒙!基于 Nonebot2 的原神 QQ 机器人 米游社 API 接口参考
Genshin-bots/gsuid_core GsCore 插件核心部分 部分功能实现参考
MeetWq/pil-utils A simple PIL wrapper and text-to-image tool PIL 绘图辅助工具
nonebot/nonebot2 跨平台 Python 异步聊天机器人框架 Bot 框架
nonebot_plugin_saa 一个帮助处理不同 Adapter 消息的适配和发送的插件 Bot 消息发送实现
nonebot_plugin_datastore 适用于 NoneBot2 的数据存储插件 Bot 插件数据管理

march7th's People

Contributors

mobyw avatar pre-commit-ci[bot] avatar qslotus avatar lvwenzhuo2003 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.