Skip to main content

axtbot-plugin-minecraft

✨ 官方插件包之一,通过Uapis提供的接口获取用户账户信息 ✨

pypi python

介绍

这是官方插件包之一,通过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

[!NOTE] 对应的Uapi Key请在 Uapis 注册获取并生成API KEY 填入此处!

若使用 /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 获取菜单

可选前置

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

axtbot_plugin_minecraft-1.1.0.tar.gz (31.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

axtbot_plugin_minecraft-1.1.0-py3-none-any.whl (42.1 kB view details)

Uploaded Python 3

File details

Details for the file axtbot_plugin_minecraft-1.1.0.tar.gz.

File metadata

  • Download URL: axtbot_plugin_minecraft-1.1.0.tar.gz
  • Upload date:
  • Size: 31.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.29.0 CPython/3.12.3 Linux/6.17.0-1022-azure

File hashes

Hashes for axtbot_plugin_minecraft-1.1.0.tar.gz
Algorithm Hash digest
SHA256 f0d3c1aa5a8c1a90c8dad94b8a66232db62d43f13d59e6c265bfebf2d1cc2d44
MD5 2a92ccfad4d9d2f92096f2147757ddf9
BLAKE2b-256 c949efd3c0ab621b01feb8146e4aa1960ef5ec2ed7fa03c8430107c4f40706dd

See more details on using hashes here.

File details

Details for the file axtbot_plugin_minecraft-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for axtbot_plugin_minecraft-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e060338c4a90ad865a535ed99b4d6a89ca403e45be17b6431edffe831ef0ffde
MD5 2bb11712749493f2a4e1aa5259dce868
BLAKE2b-256 f4fa316e7e6cba151018a4657330a20beec73d772df919cb9b6fdff1ec8633d3

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page