Coder Social home page Coder Social logo

diam2023 / starbot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from starlwr/starbot

0.0 0.0 0.0 20.09 MB

一个极速,多功能的哔哩哔哩推送机器人

Home Page: https://bot.starlwr.com

License: GNU Affero General Public License v3.0

Python 100.00%

starbot's Introduction

StarBot

一款极速,多功能的哔哩哔哩推送机器人。

特性

  • 极速的直播推送,通过连接直播间实现
  • 接近于手机端效果的绘图式动态推送
  • 详细的直播数据统计
  • 群内数据查询、榜单查询

快速开始

项目依赖于 Redis 进行持久化的直播相关数据存储,依赖于 Mirai 和 mirai-http 进行消息推送

安装

pip install starbot-bilibili

启动

推送配置的 JSON 文件可使用官网的 在线制作工具 生成
详细文档及 config 中所需的 credential 获取方式请参见 部署文档

from starbot.core.bot import StarBot
from starbot.core.datasource import JsonDataSource
from starbot.utils import config

config.set_credential(sessdata="B站账号的sessdata", bili_jct="B站账号的bili_jct", buvid3="B站账号的buvid3")

datasource = JsonDataSource("推送配置.json")
bot = StarBot(datasource)
bot.run()

鸣谢

starbot's People

Contributors

starlwr avatar howardleo505 avatar xixilocked 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.