Skip to main content

基于 Nonebot2 的群友音游成分查询

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-playercheck

✨ NoneBot 一个查询群友音游成分的插件 ✨

license pypi python

📖 介绍

将群友成分储存于json文件,并使用nonebot-plugin-htmlrender渲染网页

💿 安装

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

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot_plugin_playercheck"]

⚙️ 配置

(可选) 可以将本项目中的assets文件夹内的assets.json拖入你机器人目录的/data/playercheck文件夹内这样可以 获取游戏别名和游戏图片

🎉 使用

指令表

指令 权限 需要@ 范围 说明
cf.add 群员 群聊 cf.add osu,malody
cf.del 群员 群聊 删除用户输入的所有游戏列表
cf.list 群员 群聊 渲染图片
cf.update 群员 群聊 整理alias与游戏名,用于修改assets.json后不重新添加即可合并

效果图

如果没有从群内获取到该玩家的信息,则只会返回头像

效果

TODO

  • 私聊页面中进行操作
  • 按个人查询列表
  • 更好的数据管理方案
  • 资源文件本地化
  • 进一步优化代码

DONE

  • 优化代码结构

Project details


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_playercheck-1.5.9.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

Supported by

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