GithubHelp home page GithubHelp logo

rabbitbot's Introduction

RabbitBot

一个超只因有用的 QQ 频道机器人

分为两个部分

一个为channel_bot QQ频道官方bot

一个为nonebot_plugins_zplay 以nonebot插件的形式加载

QQ频道官方bot

使用

1.申请 bot

官网:https://q.qq.com/#/app/bot

2.安装依赖(已包含 qqbot python SDK)

pip install -r requirements.txt

3.配置

  • config.bak.yaml 重命名为 config.yaml,然后在 config.yaml 中配置你的 bot
  • 电梓播放器相关配置
    • 下载 OBS Studioobs-websocket
    • 来源 列表左下角选择 添加 -> 媒体源,命名为 电子播放器,或者自定义名称,并在 config.yaml 文件里将 input_name 一项修改为自定义的名称
    • 在 OBS 的 设置 中填入个人 QQ 频道直播的推流地址和推流码
    • 开始推流

注意

  • danmaku 无法通过 pip 直接安装,需要自行下载安装,参考THMonster/danmaku ,将仓库下载到第三方库对应的目录下执行 python setup.py install 即可

NoneBot2

如果你习惯于使用NoneBot,则可以使用nonebot_plugins_zplay

使用

1.添加插件

nonebot_plugins_zplay 复制到 NoneBot文件夹中的 plugins 中,参考Nonebot2/插件入门

2.安装依赖(包含nb-cli)

在插件目录中

pip install -r requirements.txt

3.配置

配置如上

注意

本人测试环境为Python 3.9 及 3.10,建议使用者的使用环境不低于 3.9

该插件目前仅适配电梓播放器

rabbitbot's People

Contributors

pigeoner avatar iamk77 avatar rikkaka avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

iamk77 rikkaka

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.