Skip to content

Commit

Permalink
新增主站功能
Browse files Browse the repository at this point in the history
  • Loading branch information
lzghzr committed Nov 26, 2018
1 parent ea691ec commit f89e9a7
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 9 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@
5. 命令行 `npm start`

[点此进行设置](http://github.halaal.win/bilive_client/#path=ws://localhost:10080&protocol=admin)

值得推荐的分支
* [Vector000/bilive_client](https://github.com/Vector000/bilive_client)

此为客户端, 更多功能需配合服务端使用
[服务端](https://github.com/lzghzr/bilive_server)

```TypeScript
const 支付宝红包码 = `
█▀▀▀▀▀█ ▄▄█ ▄▀█ ▀▀▄ █▀▀▀▀▀█
Expand Down Expand Up @@ -97,7 +104,4 @@ const 微信收钱码 = `
█ ███ █ ▀██▀▄▀██▄▄▄▀▀█▀█▀▄▄ █
█ ▀▀▀ █ ▄▄▄█▀█▀▀██▄▀██▀█▄▄▀██
▀▀▀▀▀▀▀ ▀ ▀▀ ▀▀ ▀▀▀▀▀▀ ▀ `
```

此为客户端, 更多功能需配合服务端使用
[服务端](https://github.com/lzghzr/bilive_server)
```
6 changes: 2 additions & 4 deletions bilive/@types/bilive.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ interface userCollection {
[index: string]: userData
}
interface userData {
[index: string]: string | boolean | number
[index: string]: string | boolean | number | number[]
nickname: string
userName: string
passWord: string
Expand Down Expand Up @@ -101,9 +101,7 @@ declare class Online extends AppClient {
uid: string
userData: userData
readonly nickname: string
jar: {
setCookie(cookieOrStr: string, uri: string): void
}
jar: any
captchaJPEG: string
readonly tokenQuery: string
Start(): Promise<'captcha' | 'stop' | void>
Expand Down
30 changes: 30 additions & 0 deletions bilive/@types/danmaku.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1315,6 +1315,36 @@ interface USER_TITLE_GET_Data {
score: number
level: number
}
/**
* 貌似是入场特效
* {"cmd":"USER_TOAST_MSG","data":{"op_type":1,"uid":95518573,"username":"卢噜噜噜噜噜","guard_level":3,"is_show":0},"_roomid":515838}
*
* @interface USER_TOAST_MSG
* @extends {danmuJson}
*/
interface USER_TOAST_MSG extends danmuJson {
data: USER_TOAST_MSG_Data
}
interface USER_TOAST_MSG_Data {
op_type: number
uid: number
username: string
guard_level: number
is_show: number
}
/**
* 勋章亲密度上限
* {"cmd":"LITTLE_TIPS","data":{"msg":"你的粉丝勋章【仙女淼】已达今日亲密度上限"},"_roomid":7191684}
*
* @interface LITTLE_TIPS
* @extends {danmuJson}
*/
interface LITTLE_TIPS extends danmuJson {
data: LITTLE_TIPS_Data
}
interface LITTLE_TIPS_Data {
msg: string
}
/**
* 画板活动
*
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bilive_client",
"version": "2.0.0",
"version": "2.0.1",
"description": "基于Node.JS的bilibili直播挂机系统",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit f89e9a7

Please sign in to comment.