Skip to main content

适配哔哩哔哩直播间ws协议的Nonebo2适配器

Project description

assets\adapter-bilibili.png

配置

DRIVER=~websockets                # 必须有的正向ws的Driver
rooms=[123, 123, 123]             # 直播间房间号 
manual_login=true                 # 是否需要手动登录 (登录以后才可以用send方法向直播间发送消息) 默认false(还没实现)
bili_cookie="buvid***"            # 登录用的cookies (登录以后才可以用send方法向直播间发送消息) 默认"",没有配置将使用二维码登录

已实现事件

消息类

Danmu_msg弹幕
Super_chat_message醒目留言

通知类 `Combo_send`连击礼物
`Send_gift`投喂礼物
`Common_notice_danmaku`限时任务
`Entry_effect`舰长进房
`Interact_word`普通进房消息
`Guard_buy`上舰
`User_toast_msg`续费舰长
`Notice_msg`在本房间续费了舰长
`Like_info_v3_click`点赞
`Like_info_v3_update`总点赞数
`Online_rank_count`在线等级统计
`Room_change`房间信息变动
`Room_real_time_message_update`房间数据
`Watched_change`直播间实时观看人数
`Stop_live_room_list`实时下播列表
`Room_real_time_message_update`房间数据
`Anchor_lot_start`天选之人开始
`Anchor_lot_award`天选之人结果

已实现api

send 发送弹幕

Todo(大饼):

  • 登录制作
  • 代码重构

鸣谢

  • ieew: 提供代码上的帮助
  • 17TheWord: 教我使用github
  • NoneBot2: 开源代码 让我拥有这次学习机会

顺便一提

初出茅庐, 有啥好的意见or代码有啥bug欢迎提交

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot-adapter-bilibili-0.0.7.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_adapter_bilibili-0.0.7-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file nonebot-adapter-bilibili-0.0.7.tar.gz.

File metadata

  • Download URL: nonebot-adapter-bilibili-0.0.7.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.20.0.post1 CPython/3.12.3 Windows/11

File hashes

Hashes for nonebot-adapter-bilibili-0.0.7.tar.gz
Algorithm Hash digest
SHA256 0f22c5a7df01c83dcafe756739d73f180b056481952c9534a8a4aae0d1dc7747
MD5 32b06048c81fc63e8a0951957b76eb5d
BLAKE2b-256 54c8c9a1728ac5bf6d380e76839be522801e7d9a19c94ee477186502a0dbff23

See more details on using hashes here.

File details

Details for the file nonebot_adapter_bilibili-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_adapter_bilibili-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 2618dd4348cd651620b88619ce98fdd664738cb6751912f79054dab3432315e7
MD5 d24c51deb365943390eb818668067682
BLAKE2b-256 d51e2a7674be7c4a4705947fd9cf3b8a341de2b0efeee7150c76773dbb03273e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page