DirectLinker
✨ 一个基于 NoneBot2 的插件,用于提取QQ群文件的直链 ✨
用途
- 配合下载器高速下载
- 分享给不在群里的人
用法
配置文件.env.*中添加:
COMMAND_START=["/", ""] # 别忘了设置指令前缀,这里只是提醒一下,如果你不知道这个有什么用,请阅读nonebot文档
linker_group=["<QQ群号>"] # 启用插件的群
linker_command="link" # 设置插件触发命令(默认`link`)
演示
假设有一群文件为以下目录结构:
注意:在腾讯的群文件中,允许在同一个文件夹下存在两个文件不同,但是文件名相同的文件
│ foo.txt
| bar.txt
└─Folder1
bar.txt
bar.txt
在群文件根目录有一个bar.txt,在Folder1目录下有两个文件bar.txt和foo.txt。
/<linker_command> -h
/<linker_command> --help
输出
Manual of 群文件直链提取器
-n | --name 文件名.*
-i | --info 文件序号
-p | --path 文件路径
例:/link -n 文件名.exe
提取文件直链
/<linker_command> -n <文件名>
/<linker_command> --name <文件名>
对于上述目录结构,输入/<linker_command> -n foo.txt,会直接输出其直链,这是因为在群文件中有且只有一个foo.txt。
但同样对于bar.txt,则会输出以下内容:
[Linker]找到了多个文件,请输入`/link -n 文件名.* -f 文件序号`来选择文件
1:上传者 * ,上传时间****-**-** **:**:**
2:上传者 * ,上传时间****-**-** **:**:**
在群文件中存在两个文件名一样的bar.txt,我们无法直接提取其直链,需要指定某个文件。
/<linker_command> -n <文件名> -i <文件序号>
/<linker_command> --name <文件名> --info <文件序号>
或者,在同文件夹内文件不重复的情况下,可以使用文件路径来提取直链。
对于文件路径,在群文件根目录下请使用/,在子目录下请直接使用子目录名,如Folder。
/<linker_command> -n <文件名> -p <文件路径>
/<linker_command> --name <文件名> --path <文件路径>
Metadata
Release files for nonebot-plugin-directlinker 2.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot-plugin-directlinker-2.4.0.tar.gz | 17.1 kB | Without provenance | Details for nonebot-plugin-directlinker-2.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_directlinker-2.4.0-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_directlinker-2.4.0-py3-none-any.whl |
Total release size: 34.7 kB
Release files / nonebot-plugin-directlinker-2.4.0.tar.gz
| Download URL | nonebot-plugin-directlinker-2.4.0.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
913031627a7984fab1adb83bbe51b848baf54c1134c1db442f0d0ddb07954061
|
|
BLAKE2b-256 checksum How to use checksums |
c5e918081965adf1934b68597af57d9f75466d6b9b61d0421e233f2f2ed88029
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|
Release files / nonebot_plugin_directlinker-2.4.0-py3-none-any.whl
| Download URL | nonebot_plugin_directlinker-2.4.0-py3-none-any.whl |
|---|---|
| Size | 17.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b636c92969bcc124d2b1c78cb83c6694f5243843ea20d2fe4cd878febb55ed86
|
|
BLAKE2b-256 checksum How to use checksums |
cc3ebb01d0c3c7d798bfebe3395735f4c1b1eb08e49334aea7ebc5103a313fd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|
Security for nonebot-plugin-directlinker 2.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.