介绍
这是官方插件包之一,通过Uapis提供的接口获取用户账户信息
安装方法
使用包管理器安装
在项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install axtbot-plugin-minecraft
pdm
pdm add axtbot-plugin-minecraft
poetry
poetry add axtbot-plugin-minecraft
使用源码安装
在项目的插件目录下,打开命令行,输入以下内容 ```bash git clone https://github.com/AxT-Team/axtbot-plugin-minecraft ```把src中的文件夹拷贝至插件目录下
打开项目根目录下的 pyproject.toml 文件, 在 [tool.axtbot] 部分追加写入
plugins = ["axtbot_plugin_minecraft"]
配置
安装完毕后,需要在 .env 中配置如下内容:
UAPI_KEY=uapi-xxxxxxxxxxxxxxxxxxxxxxxx
若使用 /hyp 则需要在 data 目录下新增 config.json 并配置:
{
"hypixel": {
"resource": "hypixel.json", // 本地化资源文件名 (resources/ 下)
"api_key": "你的 Hypixel API Key", // 在 https://developer.hypixel.net 申请
"timezone_offset": 28800 // 时间显示时区偏移(秒), 28800 = UTC+8
},
"staffs": ["管理员用户ID"], // 管理员不受冷却限制
"cooldown": 10, // 每用户查询冷却(秒)
"cooldown_message": "获取速度太快了啦!" // 冷却期间的提示
}
用法
使用 /mc 获取菜单
可选前置
Metadata
Release files for axtbot-plugin-minecraft 1.1.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 |
|---|---|---|---|---|
| axtbot_plugin_minecraft-1.1.0.tar.gz | 31.3 kB | Without provenance | Details for axtbot_plugin_minecraft-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| axtbot_plugin_minecraft-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for axtbot_plugin_minecraft-1.1.0-py3-none-any.whl |
Total release size: 73.5 kB
Release files / axtbot_plugin_minecraft-1.1.0.tar.gz
| Download URL | axtbot_plugin_minecraft-1.1.0.tar.gz |
|---|---|
| Size | 31.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0d3c1aa5a8c1a90c8dad94b8a66232db62d43f13d59e6c265bfebf2d1cc2d44
|
|
BLAKE2b-256 checksum How to use checksums |
c949efd3c0ab621b01feb8146e4aa1960ef5ec2ed7fa03c8430107c4f40706dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.29.0 CPython/3.12.3 Linux/6.17.0-1022-azure
|
Release files / axtbot_plugin_minecraft-1.1.0-py3-none-any.whl
| Download URL | axtbot_plugin_minecraft-1.1.0-py3-none-any.whl |
|---|---|
| Size | 42.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e060338c4a90ad865a535ed99b4d6a89ca403e45be17b6431edffe831ef0ffde
|
|
BLAKE2b-256 checksum How to use checksums |
f4fa316e7e6cba151018a4657330a20beec73d772df919cb9b6fdff1ec8633d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.29.0 CPython/3.12.3 Linux/6.17.0-1022-azure
|
Security for axtbot-plugin-minecraft 1.1.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.