Skip to content

Commit

Permalink
✨ feat: Add bilibili plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Jan 27, 2024
1 parent 05969b3 commit 7f26689
Show file tree
Hide file tree
Showing 36 changed files with 428 additions and 693 deletions.
1 change: 0 additions & 1 deletion .stylelintrc.js

This file was deleted.

42 changes: 21 additions & 21 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Changelog

### [Version 1.5.1](https://github.com/lobehub/chat-plugin-template/compare/v1.5.0...v1.5.1)
### [Version 1.5.1](https://github.com/lobehub/chat-plugin-bilibili/compare/v1.5.0...v1.5.1)

<sup>Released on **2024-01-11**</sup>

Expand All @@ -17,8 +17,8 @@

#### What's fixed

- **misc**: Fix gateway runtime ([f181fa3](https://github.com/lobehub/chat-plugin-template/commit/f181fa3))
- **misc**: Fix gateway runtime, closes [#24](https://github.com/lobehub/chat-plugin-template/issues/24) ([8b1a443](https://github.com/lobehub/chat-plugin-template/commit/8b1a443))
- **misc**: Fix gateway runtime ([f181fa3](https://github.com/lobehub/chat-plugin-bilibili/commit/f181fa3))
- **misc**: Fix gateway runtime, closes [#24](https://github.com/lobehub/chat-plugin-bilibili/issues/24) ([8b1a443](https://github.com/lobehub/chat-plugin-bilibili/commit/8b1a443))

</details>

Expand All @@ -28,7 +28,7 @@

</div>

## [Version 1.5.0](https://github.com/lobehub/chat-plugin-template/compare/v1.4.0...v1.5.0)
## [Version 1.5.0](https://github.com/lobehub/chat-plugin-bilibili/compare/v1.4.0...v1.5.0)

<sup>Released on **2023-12-30**</sup>

Expand All @@ -47,11 +47,11 @@

#### What's improved

- **misc**: Support markdown type ([0a6e154](https://github.com/lobehub/chat-plugin-template/commit/0a6e154))
- **misc**: Support markdown type ([0a6e154](https://github.com/lobehub/chat-plugin-bilibili/commit/0a6e154))

#### Styles

- **misc**: Improve manifest info ([0f51c54](https://github.com/lobehub/chat-plugin-template/commit/0f51c54))
- **misc**: Improve manifest info ([0f51c54](https://github.com/lobehub/chat-plugin-bilibili/commit/0f51c54))

</details>

Expand All @@ -61,7 +61,7 @@

</div>

## [Version 1.4.0](https://github.com/lobehub/chat-plugin-template/compare/v1.3.0...v1.4.0)
## [Version 1.4.0](https://github.com/lobehub/chat-plugin-bilibili/compare/v1.3.0...v1.4.0)

<sup>Released on **2023-12-02**</sup>

Expand All @@ -76,7 +76,7 @@

#### What's improved

- **misc**: Add meta into manifest ([48da33e](https://github.com/lobehub/chat-plugin-template/commit/48da33e))
- **misc**: Add meta into manifest ([48da33e](https://github.com/lobehub/chat-plugin-bilibili/commit/48da33e))

</details>

Expand All @@ -86,7 +86,7 @@

</div>

## [Version 1.3.0](https://github.com/lobehub/chat-plugin-template/compare/v1.2.1...v1.3.0)
## [Version 1.3.0](https://github.com/lobehub/chat-plugin-bilibili/compare/v1.2.1...v1.3.0)

<sup>Released on **2023-11-16**</sup>

Expand All @@ -101,7 +101,7 @@

#### What's improved

- **misc**: Update manifest example, closes [#17](https://github.com/lobehub/chat-plugin-template/issues/17) ([abf44f0](https://github.com/lobehub/chat-plugin-template/commit/abf44f0))
- **misc**: Update manifest example, closes [#17](https://github.com/lobehub/chat-plugin-bilibili/issues/17) ([abf44f0](https://github.com/lobehub/chat-plugin-bilibili/commit/abf44f0))

</details>

Expand All @@ -111,7 +111,7 @@

</div>

### [Version 1.2.1](https://github.com/lobehub/chat-plugin-template/compare/v1.2.0...v1.2.1)
### [Version 1.2.1](https://github.com/lobehub/chat-plugin-bilibili/compare/v1.2.0...v1.2.1)

<sup>Released on **2023-11-06**</sup>

Expand All @@ -126,7 +126,7 @@

#### Code refactoring

- **misc**: Refactor to use new lobeChat api ([1f0a533](https://github.com/lobehub/chat-plugin-template/commit/1f0a533))
- **misc**: Refactor to use new lobeChat api ([1f0a533](https://github.com/lobehub/chat-plugin-bilibili/commit/1f0a533))

</details>

Expand All @@ -136,7 +136,7 @@

</div>

## [Version 1.2.0](https://github.com/lobehub/chat-plugin-template/compare/v1.1.0...v1.2.0)
## [Version 1.2.0](https://github.com/lobehub/chat-plugin-bilibili/compare/v1.1.0...v1.2.0)

<sup>Released on **2023-10-23**</sup>

Expand All @@ -151,7 +151,7 @@

#### What's improved

- **misc**: Add standalone type ([3a432f5](https://github.com/lobehub/chat-plugin-template/commit/3a432f5))
- **misc**: Add standalone type ([3a432f5](https://github.com/lobehub/chat-plugin-bilibili/commit/3a432f5))

</details>

Expand All @@ -161,7 +161,7 @@

</div>

## [Version 1.1.0](https://github.com/lobehub/chat-plugin-template/compare/v1.0.0...v1.1.0)
## [Version 1.1.0](https://github.com/lobehub/chat-plugin-bilibili/compare/v1.0.0...v1.1.0)

<sup>Released on **2023-09-09**</sup>

Expand All @@ -176,7 +176,7 @@

#### What's improved

- **misc**: 新增展示文档 ([fdff07f](https://github.com/lobehub/chat-plugin-template/commit/fdff07f))
- **misc**: 新增展示文档 ([fdff07f](https://github.com/lobehub/chat-plugin-bilibili/commit/fdff07f))

</details>

Expand Down Expand Up @@ -209,17 +209,17 @@

#### What's improved

- **misc**: 完善插件开发模板的基础内容 ([8d354b4](https://github.com/lobehub/chat-plugin-template/commit/8d354b4))
- **misc**: 完善插件开发模板的基础内容 ([8d354b4](https://github.com/lobehub/chat-plugin-bilibili/commit/8d354b4))

#### What's fixed

- **misc**: Fix ci ([34fe03a](https://github.com/lobehub/chat-plugin-template/commit/34fe03a))
- **misc**: Fix import ([d8473af](https://github.com/lobehub/chat-plugin-template/commit/d8473af))
- **misc**: Fix ci ([34fe03a](https://github.com/lobehub/chat-plugin-bilibili/commit/34fe03a))
- **misc**: Fix import ([d8473af](https://github.com/lobehub/chat-plugin-bilibili/commit/d8473af))

#### Styles

- **misc**: Update lint ([d48fb19](https://github.com/lobehub/chat-plugin-template/commit/d48fb19))
- **misc**: 优化暗色主题表现 ([47004c5](https://github.com/lobehub/chat-plugin-template/commit/47004c5))
- **misc**: Update lint ([d48fb19](https://github.com/lobehub/chat-plugin-bilibili/commit/d48fb19))
- **misc**: 优化暗色主题表现 ([47004c5](https://github.com/lobehub/chat-plugin-bilibili/commit/47004c5))

</details>

Expand Down
76 changes: 44 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<img height="120" src="https://gw.alipayobjects.com/zos/kitchen/qJ3l3EPsdW/split.svg">
<img height="120" src="https://registry.npmmirror.com/@lobehub/assets-emoji-anim/1.0.0/files/assets/rocket.webp">

<h1>Plugin Template<br/><sup>LobeChat Plugin</sup></h1>
<h1>Bilibili<br/><sup>LobeChat Plugin</sup></h1>

This is the plugin template for LobeChat plugin development
Dive into Bilibili's vast content with features like keyword video search, replay access, interactive danmaku, trending video recommendations, and hot-search insights, all at your fingertips.

[![][🤯-🧩-lobehub-shield]][🤯-🧩-lobehub-link]
[![][github-release-shield]][github-release-link]
Expand All @@ -34,6 +34,7 @@ This is the plugin template for LobeChat plugin development

- [🌟 Features](#-features)
- [🤯 Usage](#-usage)
- [📦 Plugin Ecosystem](#-plugin-ecosystem)
- [⌨️ Local Development](#️-local-development)
- [🤝 Contributing](#-contributing)
- [🔗 Links](#-links)
Expand All @@ -44,10 +45,11 @@ This is the plugin template for LobeChat plugin development

## 🌟 Features

- [x] 💨 **Quick start with low learning curve**: This template provides a quick start option, allowing users to get started quickly. Additionally, the template includes detailed documentation to help users understand and use the features easily.
- [x] 📚 **Beautiful and comprehensive documentation**: The template aims for aesthetics, with carefully designed interfaces and layouts that make the documentation more intuitive, readable, and user-friendly. Moreover, the template offers a wide range of styles and components for users to customize the appearance and functionality of their documentation.
- [x] 🔄 **Complete workflow, automatic publishing and partner updates**: The template provides a complete workflow, including automatic publishing and automatic partner updates. Users can easily complete the publishing and updating tasks by following the specified steps.
- [x] 🖱️ **One-click document generation**: The template offers a one-click document generation feature, allowing users to quickly generate complete documentation with simple operations. This saves users a significant amount of time and effort, allowing them to focus on improving the content and quality of their documentation.
- 🎥 **Search Videos by Keywords**: Find videos easily using specific keywords. This feature allows you to search through a vast library of content to find exactly what you're looking for.
- 🔄 **Video Replay Access**: Retrieve video replays by using the video's unique AVID (Audio Video Interleave Definition), such as 'av662384801' or 'BV1TP411b7pN'. This ensures you can revisit your favorite content whenever you wish.
- 💬 **Video Danmaku (Bullet Comments)**: Experience interactive viewing with danmaku, the real-time commentary feature that overlays scrolling comments directly over videos. Enter the video's AVID to join the conversation.
- 🔥 **Popular Video Recommendations**: Stay updated with the latest trends by getting a list of popular videos from Bilibili. This feature keeps you connected to the most viewed and talked about content.
- 🔍 **Hot-Search Keywords**: Discover what's currently hot with the top 10 trending search keywords from Bilibili. This pulse on the community's interests can guide you to the most relevant and engaging content.

<div align="right">

Expand All @@ -57,10 +59,20 @@ This is the plugin template for LobeChat plugin development

## 🤯 Usage

> [!IMPORTANT]\
This is a function calling plugin for [Lobe Chat](https://github.com/lobehub/lobe-chat), you can install it in plugin setting page.

<div align="right">

[![][back-to-top]](#readme-top)

</div>

## 📦 Plugin Ecosystem

> \[!IMPORTANT]\
> See detail on [📘 Template usage](https://chat-plugin-sdk.lobehub.com/guides/template)
> [!Note]\
> \[!Note]\
> Plugins provide a means to extend the [Function Calling][fc-link] capabilities of LobeChat. They can be used to introduce new function calls, and even new ways to render message results. If you are interested in plugin development, please refer to our [📘 Plugin Development Guide](https://github.com/lobehub/lobe-chat/wiki/Plugin-Development) in the Wiki.
>
> - [@lobehub/lobe-chat-plugins][lobe-chat-plugins]: This is the plugin index for LobeChat. It accesses index.json from this repository to display a list of available plugins for LobeChat to the user.
Expand Down Expand Up @@ -90,8 +102,8 @@ Or clone it for local development:
[![][bun-shield]][bun-link]

```bash
$ git clone https://github.com/lobehub/chat-plugin-template.git
$ cd chat-plugin-template
$ git clone https://github.com/lobehub/chat-plugin-bilibili.git
$ cd chat-plugin-bilibili
$ bun install
$ bun dev
```
Expand Down Expand Up @@ -147,29 +159,29 @@ This project is [MIT](./LICENSE) licensed.
[chat-plugin-web-crawler]: https://github.com/lobehub/chat-plugin-web-crawler
[chat-plugins-gateway]: https://github.com/lobehub/chat-plugins-gateway
[fc-link]: https://sspai.com/post/81986
[github-action-release-link]: https://github.com/lobehub/chat-plugin-template/actions/workflows/release.yml
[github-action-release-shield]: https://img.shields.io/github/actions/workflow/status/lobehub/chat-plugin-template/release.yml?label=release&labelColor=black&logo=githubactions&logoColor=white&style=flat-square
[github-action-test-link]: https://github.com/lobehub/chat-plugin-template/actions/workflows/test.yml
[github-action-test-shield]: https://img.shields.io/github/actions/workflow/status/lobehub/chat-plugin-template/test.yml?label=test&labelColor=black&logo=githubactions&logoColor=white&style=flat-square
[github-codespace-link]: https://codespaces.new/lobehub/chat-plugin-template
[github-action-release-link]: https://github.com/lobehub/chat-plugin-bilibili/actions/workflows/release.yml
[github-action-release-shield]: https://img.shields.io/github/actions/workflow/status/lobehub/chat-plugin-bilibili/release.yml?label=release&labelColor=black&logo=githubactions&logoColor=white&style=flat-square
[github-action-test-link]: https://github.com/lobehub/chat-plugin-bilibili/actions/workflows/test.yml
[github-action-test-shield]: https://img.shields.io/github/actions/workflow/status/lobehub/chat-plugin-bilibili/test.yml?label=test&labelColor=black&logo=githubactions&logoColor=white&style=flat-square
[github-codespace-link]: https://codespaces.new/lobehub/chat-plugin-bilibili
[github-codespace-shield]: https://github.com/codespaces/badge.svg
[github-contrib-link]: https://github.com/lobehub/chat-plugin-template/graphs/contributors
[github-contrib-shield]: https://contrib.rocks/image?repo=lobehub%2Fchat-plugin-template
[github-contributors-link]: https://github.com/lobehub/chat-plugin-template/graphs/contributors
[github-contributors-shield]: https://img.shields.io/github/contributors/lobehub/chat-plugin-template?color=c4f042&labelColor=black&style=flat-square
[github-forks-link]: https://github.com/lobehub/chat-plugin-template/network/members
[github-forks-shield]: https://img.shields.io/github/forks/lobehub/chat-plugin-template?color=8ae8ff&labelColor=black&style=flat-square
[github-issues-link]: https://github.com/lobehub/chat-plugin-template/issues
[github-issues-shield]: https://img.shields.io/github/issues/lobehub/chat-plugin-template?color=ff80eb&labelColor=black&style=flat-square
[github-license-link]: https://github.com/lobehub/chat-plugin-template/blob/main/LICENSE
[github-license-shield]: https://img.shields.io/github/license/lobehub/chat-plugin-template?color=white&labelColor=black&style=flat-square
[github-release-link]: https://github.com/lobehub/chat-plugin-template/releases
[github-release-shield]: https://img.shields.io/github/v/release/lobehub/chat-plugin-template?color=369eff&labelColor=black&logo=github&style=flat-square
[github-releasedate-link]: https://github.com/lobehub/chat-plugin-template/releases
[github-releasedate-shield]: https://img.shields.io/github/release-date/lobehub/chat-plugin-template?labelColor=black&style=flat-square
[github-stars-link]: https://github.com/lobehub/chat-plugin-template/network/stargazers
[github-stars-shield]: https://img.shields.io/github/stars/lobehub/chat-plugin-template?color=ffcb47&labelColor=black&style=flat-square
[github-contrib-link]: https://github.com/lobehub/chat-plugin-bilibili/graphs/contributors
[github-contrib-shield]: https://contrib.rocks/image?repo=lobehub%2Fchat-plugin-bilibili
[github-contributors-link]: https://github.com/lobehub/chat-plugin-bilibili/graphs/contributors
[github-contributors-shield]: https://img.shields.io/github/contributors/lobehub/chat-plugin-bilibili?color=c4f042&labelColor=black&style=flat-square
[github-forks-link]: https://github.com/lobehub/chat-plugin-bilibili/network/members
[github-forks-shield]: https://img.shields.io/github/forks/lobehub/chat-plugin-bilibili?color=8ae8ff&labelColor=black&style=flat-square
[github-issues-link]: https://github.com/lobehub/chat-plugin-bilibili/issues
[github-issues-shield]: https://img.shields.io/github/issues/lobehub/chat-plugin-bilibili?color=ff80eb&labelColor=black&style=flat-square
[github-license-link]: https://github.com/lobehub/chat-plugin-bilibili/blob/main/LICENSE
[github-license-shield]: https://img.shields.io/github/license/lobehub/chat-plugin-bilibili?color=white&labelColor=black&style=flat-square
[github-release-link]: https://github.com/lobehub/chat-plugin-bilibili/releases
[github-release-shield]: https://img.shields.io/github/v/release/lobehub/chat-plugin-bilibili?color=369eff&labelColor=black&logo=github&style=flat-square
[github-releasedate-link]: https://github.com/lobehub/chat-plugin-bilibili/releases
[github-releasedate-shield]: https://img.shields.io/github/release-date/lobehub/chat-plugin-bilibili?labelColor=black&style=flat-square
[github-stars-link]: https://github.com/lobehub/chat-plugin-bilibili/network/stargazers
[github-stars-shield]: https://img.shields.io/github/stars/lobehub/chat-plugin-bilibili?color=ffcb47&labelColor=black&style=flat-square
[lobe-chat-plugins]: https://github.com/lobehub/lobe-chat-plugins
[pr-welcome-link]: https://github.com/lobehub/chat-plugin-template/pulls
[pr-welcome-link]: https://github.com/lobehub/chat-plugin-bilibili/pulls
[pr-welcome-shield]: https://img.shields.io/badge/%F0%9F%A4%AF%20PR%20WELCOME-%E2%86%92-ffcb47?labelColor=black&style=for-the-badge
[profile-url]: https://github.com/lobehub
56 changes: 0 additions & 56 deletions docs/.dumirc.ts

This file was deleted.

9 changes: 0 additions & 9 deletions docs/docs/changelog.md

This file was deleted.

7 changes: 0 additions & 7 deletions docs/docs/data.ts

This file was deleted.

7 changes: 0 additions & 7 deletions docs/docs/demo.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions docs/docs/index.md

This file was deleted.

14 changes: 0 additions & 14 deletions docs/package.json

This file was deleted.

Loading

0 comments on commit 7f26689

Please sign in to comment.