Skip to main content

A nonebot2 plugin package for how to exercise

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot_plugin_h2e

✨ NoneBot how2exercise ——Bot已经帮我们解决了吃什么 能不能解决我们练什么呢 ✨

pypi

安装

  • pip
pip install nonebot-plugin-h2e
  • nb_cli
nb plugin install nonebot-plugin-h2e

配置.env

# None

使用

nonebot.load_plugin('nonebot_plugin_h2e')

命令

注:使用命令时需要加命令前缀

  • 1. 合并转发形式:私聊/群聊 (可提供随机<数量>的运动方法和模糊匹配)
     
       /fitness <锻炼方式> <目标肌群> <[来<数量>种]|[<运动方法>|<关键字>]> 
       /swim    <锻炼方式> <目标肌群> <[来<数量>种]|[<运动方法>|<关键字>]> 
       /yoga    <锻炼方式> <目标肌群> <[来<数量>种]|[<运动方法>|<关键字>]> 
     
    2. 长文刷屏形式:私聊/群聊 (可提供随机<数量>的运动方法和精确匹配) 
     
       /fitnessL <锻炼方式> <目标肌群> <[来<数量>种]|[<运动方法>]> 
       /swimL    <锻炼方式> <目标肌群> <[来<数量>种]|[<运动方法>]> 
       /yogaL    <锻炼方式> <目标肌群> <[来<数量>种]|[<运动方法>]> 
     
    以上命令格式中,以< >包裹的表示一个参数,以[ ]包裹的表示一个可选项。 
     
     锻炼方式 = [有器械] | [无器械] | [无支持] 
     目标肌群 = [全身] | [背部] | [腿部] | [肩部] | [腹部] | [腰部] 
     详细说明:参见姜Bot的大脑 
    

其他

有bug有什么想法都可以告诉我,可先用e-mail联系:wulun0102@outlook.com

  • 本项目前期与ChatGPT深度合作,是以建立一个有趣的游泳数据库为出发点,但是发现我以一人之力无法完成这庞大的设想(作者为国家一级运动员);

  • 本项目致力于高度压榨ChatGPT生成 json 文件:

    • 内容有可能不完全真实;
      • 所需的 .json 文件如下格式;
  •   {
        "name": "俯卧撑",
        "description": "俯卧撑可以锻炼胸肌、肩膀和三头肌。需要开始时做一个高板姿势,然后弯曲肘部将身体降低,直到胸部接近地面。",
        "image": "https://example.com/pushup.jpg",
        "steps": [
          "做一个高板姿势,手掌与肩部宽度相等,双脚并拢。",
          "屈肘将身体降低,直到胸部接近地面。",
          "保持短暂的停顿,然后推回起始位置。",
          "重复以上动作。"
        ]
      }
    
  • 在后期加入游泳动作和瑜伽动作的时候有可能逻辑会有变化,但是问题不大。

  • 希望有兴趣的朋友们可以加入这个项目!!!

🐦 TODO list

  • 完善 /fitness 条目下 有器械、无支撑 相关条目;
  • 起步 /swim 条目下 无器械、有器械、无支持 相关条目;
  • 起步 /yoga 条目下 无器械、有器械、无支持 相关条目;
  • 等待大家的反馈;
  • 增加用户组的锻炼数据存储;
  • 增加用户组的锻炼计划定制;(现在只是方法,没有成为训练序列)
  • 代码结构重组

特别鸣谢:

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_h2e-0.1.3.tar.gz (27.7 kB view details)

Uploaded Source

Built Distribution

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

nonebot_plugin_h2e-0.1.3-py3-none-any.whl (39.2 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_h2e-0.1.3.tar.gz.

File metadata

  • Download URL: nonebot_plugin_h2e-0.1.3.tar.gz
  • Upload date:
  • Size: 27.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for nonebot_plugin_h2e-0.1.3.tar.gz
Algorithm Hash digest
SHA256 8dc2d1cc5926b4c7999147820e4dd34590c5d9694cea658b2e0ab73de7843f9e
MD5 5c2e89735cbf69a3ff0ae8438c12e6a3
BLAKE2b-256 5f055dd41f5fded8a9ecea05e7468b97217fc8ae7a95f2fec2a1defc9294e752

See more details on using hashes here.

File details

Details for the file nonebot_plugin_h2e-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_h2e-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ecfcd4a9e4ac78bac1be8b0d87c7f42bb38df90b8629f34c098470829e709fff
MD5 abf73b466edb0a71ab9c0272e23a47e0
BLAKE2b-256 abc5aa01655af1c21d2e953b21b9b70ce05a48de690f05f6890a0852853bfcf9

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