Code Monkey home page Code Monkey logo

bilive_client's Introduction

bilive_client

Node.js Commitizen friendly GitHub repo size MIT

  • 这是一个次分支,感谢所有对主分支做出贡献的人及其他同类开源软件的开发者
  • 有兴趣支持原作者的,请朝这里打钱=>给lzghzr打钱
  • 有兴趣向我投喂的,请朝这里打钱=>请给我钱
  • 感谢大佬的推荐!趴 (:3」∠)

使用方法

  1. 安装Node.js,建议使用LTS版本
  2. 安装Git
  3. 在命令行中定位到想要安装的目录
  4. git clone https://github.com/Vector000/bilive_client.git
  5. cd bilive_client 进入程序主目录
  6. npm inpm install 安装依赖包
  7. npm i -g pm2(自动更新所需,可忽略)
  8. npm run build 第一次启动需进行手动编译
  9. npm start(直接启动) 或 pm2 start(通过PM2后台启动)

手动更新(从旧版本更新)

  1. 定位到bilive_client目录下
  2. git pull 拉取更新
  3. npm inpm install 检查更新依赖包
  4. npm run build 手动进行编译
  5. npm startpm2 start

更新之后可能会出现不兼容的情况(或者bug),可删去options/options.json后重新进行账号设置

可使用网页设置:点此进行设置
推荐使用docs/index.html进行本地设置,也可使用HTTP POST进行设置

PM2

可使用PM2在后台启动挂机进程,无需终端常驻,并可通过pm2 restart bilive_client来进行重启 之所以用PM2做更新,是觉得PM2比较好用,而且重启方便,还能导出日志 后面可能会引入一个类似于子进程触发更新的机制,顺便看看做release的话有没有什么好的更新方法

设置相关

服务器挂机用户可通过防火墙设置来开启远程设置,但由此产生的信息泄露及其他风险请自行承担

  • 现在提供了远程连接数据加密的功能,默认关闭(无密钥)
  • 需要打开的用户可以在设置页面中设置密钥(建议直接修改json)

HttpApi 相关

请求地址 => http(s)://ip:你设置的端口(options.server.port)/api

请求方式 => POST

请求参数 => Header 包含 authorization 值为 options.server.protocol

具体接口和参数与 ws 操作一致,返回内容一致,具体传入和传出参数请参照 webapi.ts

目前有

{
    "getLog": "获取日志",
    "getConfig": "获取配置",
    "setConfig": "设置配置",
    "getAdvConfig": "获取高级设置",
    "setAdvConfig": "设置高级设置",
    "setNewNetkey": "修改密钥",
    "getInfo": "获取参数描述",
    "getAllUID": "获取uid",
    "getUserData": "获取用户配置",
    "setUserData": "设置用户配置",
    "delUserData": "删除用户",
    "newUserData": "新增用户",
    "getAllUtilID": "获取util ID",
    "getUtilData": "获取utilData",
    "utilMSG": "接收util数据,触发对应util"
}

服务端相关

  • 提供一个备用服务端ws://47.101.153.223:20080/#ff5f0db2548baecbcd21c7a50ece57a3,欢迎各种花式投喂

使用releases

不存在的,不存在的,永远也不会发release的 最近有个想法,可能会做release

Features

  • 定时查询挂机信息,支持微信推送
  • 自动送礼V2,自动升勋章
  • 本地多分区监听(无ws服务端时可用,只支持广播类抽奖)
  • 用户被封禁后停抽并通知
  • 主站任务(登录/观看/投币),支持指定投币对象
  • 云监听服务器,大幅降低漏抽
  • 多次参与节奏风暴
  • 参与大乱斗抽奖
  • 自动更新
  • 查询全站用户信息
  • 限时活动签到分享
  • PM2 Support

TO-DO

  • 优化更新逻辑
  • 做release
  • 想做点交互,但是不知道能设计什么功能,可能搞个弹幕姬

bilive_client's People

Contributors

lzghzr avatar vector000 avatar putegg avatar shmilychen avatar tzhongyan avatar bugkun avatar

Watchers

James Cloos 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.