Skip to main content

L4D2 server related operations plugin for NoneBot2

Project description

AgnesDigitalLogo

NoneBotPluginText

nonebot_plugin_l4d2_server 1.1.6

✨Nonebot & Left 4 Dead 2 server 操作 ✨

文档   ·   指令列表   ·   常见问题

python l4logo NoneBot python
ruff black NoneBot GitHub issues pypi download
QQ Chat Group

指令

  • 在 json 文件设置的前缀指令,例如设置"云",则指令 云 输出组服务器,云 1 输出 1 号服务器
  • l4d2帮助 帮助指令
  • l4 图片开启/关闭 超管指令 可以修改输出单图是否为图片输出
  • l4 查找用户 在已知服务器中查找
  • l4 工坊下载 提供创意工坊 id 下载到服务器和群聊

安装

以下提到的方法 任选其一 即可

[推荐] 使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-l4d2-server
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-l4d2-server
pdm
pdm add nonebot-plugin-l4d2-server
poetry
poetry add nonebot-plugin-l4d2-server
conda
conda install nonebot-plugin-l4d2-server

主要功能

  • 求生服务器-本地多路径操作(传地图等)
  • 批量查询指定 ip 服务器状态和玩家
  • connect 指令直接呼出服务器信息
  • 根据用户名,在已知服务器搜索玩家信息

数据结构

暂未更新

env 设置

    l4_enable = True
    """是否全局启用求生功能"""
    l4_image = False
    """是否启用图片"""
    l4_connect = True
    """是否在查服命令后加入connect ip"""
    l4_path = "data/L4D2"
    """插件数据路径"""
    l4_players = 4
    """查询总图的时候展示的用户数量"""
    l4_style = "default"
    """图片风格,可选包括以下
    - 简洁

和 0.x.x 更改部分

  • 取消了网页控制台(没有卵用)
  • 取消了自动重启(与其他插件功能重复)
  • 取消了 git 拉取更新(nb 规范用 pypi)
  • 删除无用部分(依赖太多难以维护)
  • 删除了 anne 部分,已移植到这里,通过 core 插件调用

其他

  • 本人技术很差,如果您有发现 BUG 或者更好的建议,欢迎提 Issue & Pr
  • 如果本插件对你有帮助,不要忘了点个 Star~
  • 本项目仅供学习使用,请勿用于商业用途
  • 更新日志
  • GPL-3.0 License ©@Agnes4m

🌐 感谢

  • nonebot2- 聊天机器人的基础框架

  • 饼干 - 指导 nonebot2 框架的函数使用

  • wuyi - 指导 pil 作图

  • 感谢以下服主大力支持

    • Michaela's | 机器人功能测试反馈
    • 东 | 提供 docker 部署方法等建议 | 电信服 anne 游戏群
    • 迷茫 | 催命更新 byd
    • ArcPav | 积极反馈 bug,提供改进思路

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

nonebot_plugin_l4d2_server-1.2.0.tar.gz (9.8 MB view details)

Uploaded Source

Built Distribution

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

nonebot_plugin_l4d2_server-1.2.0-py3-none-any.whl (9.9 MB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_l4d2_server-1.2.0.tar.gz.

File metadata

  • Download URL: nonebot_plugin_l4d2_server-1.2.0.tar.gz
  • Upload date:
  • Size: 9.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.26.2 CPython/3.12.3 Linux/6.11.0-1018-azure

File hashes

Hashes for nonebot_plugin_l4d2_server-1.2.0.tar.gz
Algorithm Hash digest
SHA256 5b45ee866f56502169fed34c2aa9c604dbf589c509c6646187055fc4e8e88740
MD5 db20bb33a8e2bfb770851e8c29b9a207
BLAKE2b-256 d774041b4c352b1824aa95e23376af7538d196ae0c770ec2a8b053e5204fc121

See more details on using hashes here.

File details

Details for the file nonebot_plugin_l4d2_server-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_l4d2_server-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 644016270b7344237e61b1bdf84a219ce05e074f0ce12ba06db2599e3d8e21cb
MD5 71f3f79b279d86d09368a258dfd318fa
BLAKE2b-256 4eea08e44ec4c1596b5be80f68ddf1f200e9b5d25807a71991f9be018f7d9a81

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page