📖 介绍
检测GitHub仓库链接并自动发送卡片信息
💿 安装
使用PIP安装
pip install nonebot-plugin-githubcard
克隆至本地安装
git clone https://github.com/ElainaFanBoy/nonebot_plugin_githubcard.git
⚙️ 配置
在 nonebot2 项目的.env文件中添加下表中的必填配置
| 配置项 | 必填 | 默认值 | 说明 |
|---|---|---|---|
| github_token | 否 | 无 | github_token = ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| github_type | 否 | 0 | github图片样式(0为socialify样式,1为opengraph样式) |
🎉 使用
指令表
| 指令 | 权限 | 需要@ | 说明 |
|---|---|---|---|
| https://github.com/xxx/xxx | 所有人 | 否 | GitHub仓库链接 |
效果图
socialify样式:
opengraph样式:
Metadata
Release files for nonebot-plugin-githubcard 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nonebot_plugin_githubcard-0.4.1.tar.gz | 6.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nonebot_plugin_githubcard-0.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.6 kB
Release files / nonebot_plugin_githubcard-0.4.1.tar.gz
| Download URL | nonebot_plugin_githubcard-0.4.1.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bdcfcc477ac78986dcbb67db1e3d89d9c5f601aecfc65db20e51030419ee8321
|
|
BLAKE2b-256 checksum How to use checksums |
6b966902b8058dc5278258a05617d2d1352d79cceb74317d202c854fdc5f4bcb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / nonebot_plugin_githubcard-0.4.1-py3-none-any.whl
| Download URL | nonebot_plugin_githubcard-0.4.1-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9c90c0f07d5c4f59a36333e7ff797c55781f1e7147e4832f8e0a432e08ff35c8
|
|
BLAKE2b-256 checksum How to use checksums |
246b8bac9461b97bf6b94ea77720530af097182c531eddeedf105363e67a60f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|