Skip to main content

🌟 NoneBot Plugin PalWorld 插件 🌟

yinying

✨ 一个用于管理幻兽帕鲁服务器的 NoneBot 插件 ✨
支持查看服务器状态、发送公告、管理玩家等功能。

GitHub stars GitHub issues GitHub license PyPI version Python version Release Downloads NoneBot


安装📦

方式一:通过 pip 安装

pip install nonebot-plugin-palworld

方式二:通过 NB-CLI 安装

nb plugin install nonebot-plugin-palworld

方式三:通过 Git 安装

git clone https://github.com/huanxin996/nonebot_plugin_palworld.git
cd nonebot_plugin_palworld
pip install .

然后配置插件所需的参数(参考下方配置项)。


📋 配置项

以下是插件的配置项列表,所有配置项均可在 NoneBot 的配置文件(.env 或 .env.prod)中设置:

配置项 类型 默认值 说明
palworld_host_port str 127.0.0.1:8211 幻兽帕鲁服务器地址和端口
格式: host:port
示例: 192.168.1.100:8211
必填
pallworld_user str Admin 幻兽帕鲁服务器管理员用户名
示例: ServerAdmin
必填
palworld_token str 或 int your_token_here 访问令牌,用于身份验证
示例: 12345abcde
必填
palworld_images_send bool True 是否启用图片消息发送功能
可选值: True(启用), False(禁用)

🚀 如何使用?

📜 命令列表

以下是插件支持的命令及其功能:

服务器管理

  • pl管理 状态
    查看服务器状态。

  • pl管理 公告 [内容]
    发送服务器公告。
    参数:

    • 内容(必需):公告内容。
  • pl管理 玩家列表
    查看当前在线玩家列表。

  • pl管理 玩家信息 [名称]
    查看指定玩家的信息。
    参数:

    • 名称(必需):玩家名称。

玩家管理

  • pl管理 踢出 [玩家ID] [原因?]
    踢出指定玩家,原因可选。
    参数:

    • 玩家ID(必需):玩家 ID。
    • 原因(可选):踢出原因,默认为"你被踢了"。
  • pl管理 封禁 [玩家ID] [原因?]
    封禁指定玩家,原因可选。
    参数:

    • 玩家ID(必需):玩家 ID。
    • 原因(可选):封禁原因,默认为"你已被该服务器封禁"。
  • pl管理 解封 [玩家ID]
    解封指定玩家。
    参数:

    • 玩家ID(必需):玩家 ID。

服务器控制

  • pl管理 关服 [时间] [原因?]
    发送关服命令,时间为秒,原因可选。
    参数:

    • 时间(必需):关闭等待时间(秒)。
    • 原因(可选):关服原因,默认为"服务器即将关闭"。
  • pl管理 强制关服
    立即强制关闭服务器。


🔗 相关链接

📝 更新日志

v0.0.1 (2025-01-06)

  • 初始版本发布
  • 支持基础服务器管理功能
  • 支持玩家管理功能

v0.1.1 (2025-04-15)

  • 使用alc支持多平台
  • 优化交互体验
  • 添加图片发送支持

🤝 贡献

欢迎提交 Pull Request 或 Issue!如有任何问题或建议,请提issue,我看到后会第一时间处理。

📄 开源许可

本项目采用 MIT 许可证 - 详情请查看 LICENSE 文件。


✨ 感谢使用 NoneBot Plugin PalWorld 插件!✨

Metadata

Release files for nonebot-plugin-palworld 0.1.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-plugin-palworld 0.1.11
File Size Uploaded Provenance Actions
nonebot_plugin_palworld-0.1.11.tar.gz 11.8 kB Without provenance Details for nonebot_plugin_palworld-0.1.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-palworld 0.1.11
File Interpreter ABI Platform Actions
nonebot_plugin_palworld-0.1.11-py3-none-any.whl Python 3 none any Details for nonebot_plugin_palworld-0.1.11-py3-none-any.whl

Total release size: 23.3 kB

Release files / nonebot_plugin_palworld-0.1.11.tar.gz

Download URL nonebot_plugin_palworld-0.1.11.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8d98744d463b7897ebffd894573226adbbe844b027a8bd35e8b3adc75ca9bd3f
BLAKE2b-256 checksum
How to use checksums
49b939ab7efde057dc9e6b4b9c1d58f7f5d09a134b5575af0b23441e0e2f4e6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.7

Release files / nonebot_plugin_palworld-0.1.11-py3-none-any.whl

Download URL nonebot_plugin_palworld-0.1.11-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
367de15a2b79861c68fe756c9916fc9638ec9b85a5a22432ce76c57b294bc07e
BLAKE2b-256 checksum
How to use checksums
758d02dfcf09623e6dafcb811a42fb2d658fc68c16ee50e5f3344f47f609c309
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.7

Security for nonebot-plugin-palworld 0.1.11

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.

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