nonebot-plugin-batarot


Namenonebot-plugin-batarot JSON
Version 0.2.0.post3 PyPI version JSON
download
home_pagehttps://github.com/Perseus037/nonebot_plugin_batarot/
SummaryA nonebot2 plugin for Blue Archive Tarot.
upload_time2023-12-12 02:25:58
maintainer
docs_urlNone
author
requires_python<4.0,>=3.8
licenseMIT
keywords blue archive tarot nonebot nonebot2 bot qq
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">
  <img src="https://github.com/Perseus037/nonebot_plugin_batarot/blob/main/Alice%20tarot%20picture.jpg" alt="碧蓝档案塔罗牌占卜图标" >

# nonebot-plugin-batarot

_🔮 一个可以进行测运势,魔法占卜与解读的碧蓝档案塔罗牌nonebot2插件🔮 _

<img src="https://img.shields.io/badge/python-3.8+-blue.svg" alt="python">
<a href="https://pdm.fming.dev">
  <img src="https://img.shields.io/badge/pdm-managed-blueviolet" alt="pdm-managed">
</a>
<!-- <a href="https://wakatime.com/badge/user/b61b0f9a-f40b-4c82-bc51-0a75c67bfccf/project/f4778875-45a4-4688-8e1b-b8c844440abb">
  <img src="https://wakatime.com/badge/user/b61b0f9a-f40b-4c82-bc51-0a75c67bfccf/project/f4778875-45a4-4688-8e1b-b8c844440abb.svg" alt="wakatime">
</a> -->

<br />

<a href="./LICENSE">
  <img src="https://img.shields.io/github/license/lgc-NB2Dev/nonebot-plugin-uma.svg" alt="license">
</a>
<a href="https://pypi.python.org/pypi/nonebot-plugin-batarot">
  <img src="https://img.shields.io/pypi/v/nonebot-plugin-batarot.svg" alt="pypi">
</a>
<a href="https://pypi.org/project/nonebot-plugin-batarot/">
  <img src="https://img.shields.io/pypi/dm/nonebot-plugin-batarot.svg" alt="pypi download">
</a>

</div>

<div align="left">

## 💬 前言

"许多人都会选择在塔罗牌的指引下探索未知:宇宙的秘密、月亮的暗面、星辰的指引、潜意识的呢喃、命运的征兆、时间的涟漪、以及自我真实的倒影。"

by 伦道夫·卡特

## 📖 介绍

一个可以进行测运势,魔法占卜与解读的碧蓝档案塔罗牌nonebot2插件

目前暂时有4个功能:ba塔罗牌,ba运势,ba占卜和ba塔罗牌解读,使用详见下方指令

自己推的国内仓库,无需担心从github下载图片的一次次报错和网络加载失败等问题

ps:有任何问题或建议可以直接提issue或者发email到qq邮箱,我会尽快解决/实现。

## 💿 安装

</details>
<summary>使用 nb-cli 安装(推荐)</summary>
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装

    nb plugin install nonebot-plugin-batarot

</details>

<details>
<summary>使用包管理器安装</summary>
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令

<details>
<summary>pip</summary>

    pip install nonebot-plugin-batarot[all]

</details>
<details>
<summary>pdm</summary>

    pdm add nonebot-plugin-batarot[all]

</details>
<details>
<summary>poetry</summary>

    poetry add nonebot-plugin-batarot[all]

</details>
<details>
<summary>conda</summary>

    conda install nonebot-plugin-batarot[all]

</details>

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

    plugins = ["nonebot_plugin_batarot"]

</details>

## ⚙️ 配置

无需配置,开箱即用。

## 🎉 使用

现有指令列表:

ba塔罗牌:随机发送一张ba塔罗牌以及正逆位含义

ba占卜:默认以合并转发的方式随机发送一个牌阵进行占卜(私聊时发送的是消息段)

ba运势:随机发送一张ba塔罗牌以及对应的运势分数和对应运势评价

ba塔罗牌解读:发送一张ba塔罗牌以及塔罗牌原画师的解读,支持如:ba塔罗牌解读 21 或 ba塔罗牌解读 世界的命令,实现指定塔罗牌解读。

## 💡 Q/A

-  Q1: 如果出现运行插件报错ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED]该如何解决(ssl证书验证报错)

   A1: 先使用pip install --upgrade certifi指令尝试更新python的证书库,
       你的梯子配置的是system proxy也可能会导致该报错,改为tun模式使用虚拟网卡就可以通过ssl验证了。
       如果使用上述方法都没有解决问题
       将utils.py中,async with session.get(url) as response:
       加参数改为async with session.get(url, ssl=False) as response 就可以避免报错(缺点是有一定安全风险,非必要不建议)

## 📞 制作者

### 黑纸折扇 [Perseus037] (https://github.com/Perseus037)

QQ:1209228678

## 🙏 感谢

在此感谢以下开发者(项目)对本项目做出的贡献:

-  [shi0n_krbn](twitter@shi0n_krbn) 提供的超好看ba塔罗牌原画和专业的解读

-  [CedarLullaby](https://space.bilibili.com/2910913) 提供的解读翻译

-  [student_2333](https://github.com/lgc2333) 对于我学习编写插件和配置qqbot等过程中的无私帮助

-  [nonebot_plugin_tarot](https://github.com/MinatoAquaCrews/nonebot_plugin_tarot) 提供的代码参考(~~直接开抄~~) 

## 📝 更新日志

### 0.2.0.post2
- 修复ba占卜功能在私聊时无法发送的问题
- 修改部分运势描述语句中的错误描述

### 0.2.0.post1
- 修改了全部的运势描述语句,加入了大量对国内外电影,诗歌,小说中的引用,来让描述变得更优美
- 结合现实生活中的塔罗牌占卜,增加了六个新的占卜牌阵
  
### 0.2.0
- 修复塔罗牌图片在pc端老版本qq上无法显示的问题
- 使用塔罗牌原图,提高了图像的清晰度

### 0.1.0 - 0.1.0.post4

- 修复各种bug
- 重构代码,对原有代码进行模块化拆分便于维护


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Perseus037/nonebot_plugin_batarot/",
    "name": "nonebot-plugin-batarot",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "<4.0,>=3.8",
    "maintainer_email": "",
    "keywords": "blue archive tarot nonebot nonebot2 bot qq",
    "author": "",
    "author_email": "Perseus037 <1209228678@qq.com>",
    "download_url": "https://files.pythonhosted.org/packages/fc/5e/ef1839842c20a4f940ead307ee42ee1dc59989d8ca18c16d58cf41ff9461/nonebot_plugin_batarot-0.2.0.post3.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\n  <img src=\"https://github.com/Perseus037/nonebot_plugin_batarot/blob/main/Alice%20tarot%20picture.jpg\" alt=\"\u78a7\u84dd\u6863\u6848\u5854\u7f57\u724c\u5360\u535c\u56fe\u6807\" >\n\n# nonebot-plugin-batarot\n\n_\ud83d\udd2e \u4e00\u4e2a\u53ef\u4ee5\u8fdb\u884c\u6d4b\u8fd0\u52bf\uff0c\u9b54\u6cd5\u5360\u535c\u4e0e\u89e3\u8bfb\u7684\u78a7\u84dd\u6863\u6848\u5854\u7f57\u724cnonebot2\u63d2\u4ef6\ud83d\udd2e _\n\n<img src=\"https://img.shields.io/badge/python-3.8+-blue.svg\" alt=\"python\">\n<a href=\"https://pdm.fming.dev\">\n  <img src=\"https://img.shields.io/badge/pdm-managed-blueviolet\" alt=\"pdm-managed\">\n</a>\n<!-- <a href=\"https://wakatime.com/badge/user/b61b0f9a-f40b-4c82-bc51-0a75c67bfccf/project/f4778875-45a4-4688-8e1b-b8c844440abb\">\n  <img src=\"https://wakatime.com/badge/user/b61b0f9a-f40b-4c82-bc51-0a75c67bfccf/project/f4778875-45a4-4688-8e1b-b8c844440abb.svg\" alt=\"wakatime\">\n</a> -->\n\n<br />\n\n<a href=\"./LICENSE\">\n  <img src=\"https://img.shields.io/github/license/lgc-NB2Dev/nonebot-plugin-uma.svg\" alt=\"license\">\n</a>\n<a href=\"https://pypi.python.org/pypi/nonebot-plugin-batarot\">\n  <img src=\"https://img.shields.io/pypi/v/nonebot-plugin-batarot.svg\" alt=\"pypi\">\n</a>\n<a href=\"https://pypi.org/project/nonebot-plugin-batarot/\">\n  <img src=\"https://img.shields.io/pypi/dm/nonebot-plugin-batarot.svg\" alt=\"pypi download\">\n</a>\n\n</div>\n\n<div align=\"left\">\n\n## \ud83d\udcac \u524d\u8a00\n\n\"\u8bb8\u591a\u4eba\u90fd\u4f1a\u9009\u62e9\u5728\u5854\u7f57\u724c\u7684\u6307\u5f15\u4e0b\u63a2\u7d22\u672a\u77e5\uff1a\u5b87\u5b99\u7684\u79d8\u5bc6\u3001\u6708\u4eae\u7684\u6697\u9762\u3001\u661f\u8fb0\u7684\u6307\u5f15\u3001\u6f5c\u610f\u8bc6\u7684\u5462\u5583\u3001\u547d\u8fd0\u7684\u5f81\u5146\u3001\u65f6\u95f4\u7684\u6d9f\u6f2a\u3001\u4ee5\u53ca\u81ea\u6211\u771f\u5b9e\u7684\u5012\u5f71\u3002\"\n\nby \u4f26\u9053\u592b\u00b7\u5361\u7279\n\n## \ud83d\udcd6 \u4ecb\u7ecd\n\n\u4e00\u4e2a\u53ef\u4ee5\u8fdb\u884c\u6d4b\u8fd0\u52bf\uff0c\u9b54\u6cd5\u5360\u535c\u4e0e\u89e3\u8bfb\u7684\u78a7\u84dd\u6863\u6848\u5854\u7f57\u724cnonebot2\u63d2\u4ef6\n\n\u76ee\u524d\u6682\u65f6\u67094\u4e2a\u529f\u80fd\uff1aba\u5854\u7f57\u724c\uff0cba\u8fd0\u52bf\uff0cba\u5360\u535c\u548cba\u5854\u7f57\u724c\u89e3\u8bfb\uff0c\u4f7f\u7528\u8be6\u89c1\u4e0b\u65b9\u6307\u4ee4\n\n\u81ea\u5df1\u63a8\u7684\u56fd\u5185\u4ed3\u5e93\uff0c\u65e0\u9700\u62c5\u5fc3\u4ecegithub\u4e0b\u8f7d\u56fe\u7247\u7684\u4e00\u6b21\u6b21\u62a5\u9519\u548c\u7f51\u7edc\u52a0\u8f7d\u5931\u8d25\u7b49\u95ee\u9898\n\nps\uff1a\u6709\u4efb\u4f55\u95ee\u9898\u6216\u5efa\u8bae\u53ef\u4ee5\u76f4\u63a5\u63d0issue\u6216\u8005\u53d1email\u5230qq\u90ae\u7bb1\uff0c\u6211\u4f1a\u5c3d\u5feb\u89e3\u51b3/\u5b9e\u73b0\u3002\n\n## \ud83d\udcbf \u5b89\u88c5\n\n</details>\n<summary>\u4f7f\u7528 nb-cli \u5b89\u88c5\uff08\u63a8\u8350\uff09</summary>\n\u5728 nonebot2 \u9879\u76ee\u7684\u6839\u76ee\u5f55\u4e0b\u6253\u5f00\u547d\u4ee4\u884c, \u8f93\u5165\u4ee5\u4e0b\u6307\u4ee4\u5373\u53ef\u5b89\u88c5\n\n    nb plugin install nonebot-plugin-batarot\n\n</details>\n\n<details>\n<summary>\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5b89\u88c5</summary>\n\u5728 nonebot2 \u9879\u76ee\u7684\u63d2\u4ef6\u76ee\u5f55\u4e0b, \u6253\u5f00\u547d\u4ee4\u884c, \u6839\u636e\u4f60\u4f7f\u7528\u7684\u5305\u7ba1\u7406\u5668, \u8f93\u5165\u76f8\u5e94\u7684\u5b89\u88c5\u547d\u4ee4\n\n<details>\n<summary>pip</summary>\n\n    pip install nonebot-plugin-batarot[all]\n\n</details>\n<details>\n<summary>pdm</summary>\n\n    pdm add nonebot-plugin-batarot[all]\n\n</details>\n<details>\n<summary>poetry</summary>\n\n    poetry add nonebot-plugin-batarot[all]\n\n</details>\n<details>\n<summary>conda</summary>\n\n    conda install nonebot-plugin-batarot[all]\n\n</details>\n\n\u6253\u5f00 nonebot2 \u9879\u76ee\u6839\u76ee\u5f55\u4e0b\u7684 `pyproject.toml` \u6587\u4ef6, \u5728 `[tool.nonebot]` \u90e8\u5206\u8ffd\u52a0\u5199\u5165\n\n    plugins = [\"nonebot_plugin_batarot\"]\n\n</details>\n\n## \u2699\ufe0f \u914d\u7f6e\n\n\u65e0\u9700\u914d\u7f6e\uff0c\u5f00\u7bb1\u5373\u7528\u3002\n\n## \ud83c\udf89 \u4f7f\u7528\n\n\u73b0\u6709\u6307\u4ee4\u5217\u8868\uff1a\n\nba\u5854\u7f57\u724c\uff1a\u968f\u673a\u53d1\u9001\u4e00\u5f20ba\u5854\u7f57\u724c\u4ee5\u53ca\u6b63\u9006\u4f4d\u542b\u4e49\n\nba\u5360\u535c\uff1a\u9ed8\u8ba4\u4ee5\u5408\u5e76\u8f6c\u53d1\u7684\u65b9\u5f0f\u968f\u673a\u53d1\u9001\u4e00\u4e2a\u724c\u9635\u8fdb\u884c\u5360\u535c\uff08\u79c1\u804a\u65f6\u53d1\u9001\u7684\u662f\u6d88\u606f\u6bb5\uff09\n\nba\u8fd0\u52bf\uff1a\u968f\u673a\u53d1\u9001\u4e00\u5f20ba\u5854\u7f57\u724c\u4ee5\u53ca\u5bf9\u5e94\u7684\u8fd0\u52bf\u5206\u6570\u548c\u5bf9\u5e94\u8fd0\u52bf\u8bc4\u4ef7\n\nba\u5854\u7f57\u724c\u89e3\u8bfb\uff1a\u53d1\u9001\u4e00\u5f20ba\u5854\u7f57\u724c\u4ee5\u53ca\u5854\u7f57\u724c\u539f\u753b\u5e08\u7684\u89e3\u8bfb\uff0c\u652f\u6301\u5982\uff1aba\u5854\u7f57\u724c\u89e3\u8bfb 21 \u6216 ba\u5854\u7f57\u724c\u89e3\u8bfb \u4e16\u754c\u7684\u547d\u4ee4\uff0c\u5b9e\u73b0\u6307\u5b9a\u5854\u7f57\u724c\u89e3\u8bfb\u3002\n\n## \ud83d\udca1 Q/A\n\n-  Q1: \u5982\u679c\u51fa\u73b0\u8fd0\u884c\u63d2\u4ef6\u62a5\u9519ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED]\u8be5\u5982\u4f55\u89e3\u51b3(ssl\u8bc1\u4e66\u9a8c\u8bc1\u62a5\u9519\uff09\n\n   A1: \u5148\u4f7f\u7528pip install --upgrade certifi\u6307\u4ee4\u5c1d\u8bd5\u66f4\u65b0python\u7684\u8bc1\u4e66\u5e93\uff0c\n       \u4f60\u7684\u68af\u5b50\u914d\u7f6e\u7684\u662fsystem proxy\u4e5f\u53ef\u80fd\u4f1a\u5bfc\u81f4\u8be5\u62a5\u9519\uff0c\u6539\u4e3atun\u6a21\u5f0f\u4f7f\u7528\u865a\u62df\u7f51\u5361\u5c31\u53ef\u4ee5\u901a\u8fc7ssl\u9a8c\u8bc1\u4e86\u3002\n       \u5982\u679c\u4f7f\u7528\u4e0a\u8ff0\u65b9\u6cd5\u90fd\u6ca1\u6709\u89e3\u51b3\u95ee\u9898\n       \u5c06utils.py\u4e2d\uff0casync with session.get(url) as response:\n       \u52a0\u53c2\u6570\u6539\u4e3aasync with session.get(url, ssl=False) as response \u5c31\u53ef\u4ee5\u907f\u514d\u62a5\u9519\uff08\u7f3a\u70b9\u662f\u6709\u4e00\u5b9a\u5b89\u5168\u98ce\u9669\uff0c\u975e\u5fc5\u8981\u4e0d\u5efa\u8bae\uff09\n\n## \ud83d\udcde \u5236\u4f5c\u8005\n\n### \u9ed1\u7eb8\u6298\u6247 [Perseus037] (https://github.com/Perseus037)\n\nQQ\uff1a1209228678\n\n## \ud83d\ude4f \u611f\u8c22\n\n\u5728\u6b64\u611f\u8c22\u4ee5\u4e0b\u5f00\u53d1\u8005(\u9879\u76ee)\u5bf9\u672c\u9879\u76ee\u505a\u51fa\u7684\u8d21\u732e\uff1a\n\n-  [shi0n_krbn](twitter@shi0n_krbn) \u63d0\u4f9b\u7684\u8d85\u597d\u770bba\u5854\u7f57\u724c\u539f\u753b\u548c\u4e13\u4e1a\u7684\u89e3\u8bfb\n\n-  [CedarLullaby](https://space.bilibili.com/2910913) \u63d0\u4f9b\u7684\u89e3\u8bfb\u7ffb\u8bd1\n\n-  [student_2333](https://github.com/lgc2333) \u5bf9\u4e8e\u6211\u5b66\u4e60\u7f16\u5199\u63d2\u4ef6\u548c\u914d\u7f6eqqbot\u7b49\u8fc7\u7a0b\u4e2d\u7684\u65e0\u79c1\u5e2e\u52a9\n\n-  [nonebot_plugin_tarot](https://github.com/MinatoAquaCrews/nonebot_plugin_tarot) \u63d0\u4f9b\u7684\u4ee3\u7801\u53c2\u8003\uff08~~\u76f4\u63a5\u5f00\u6284~~) \n\n## \ud83d\udcdd \u66f4\u65b0\u65e5\u5fd7\n\n### 0.2.0.post2\n- \u4fee\u590dba\u5360\u535c\u529f\u80fd\u5728\u79c1\u804a\u65f6\u65e0\u6cd5\u53d1\u9001\u7684\u95ee\u9898\n- \u4fee\u6539\u90e8\u5206\u8fd0\u52bf\u63cf\u8ff0\u8bed\u53e5\u4e2d\u7684\u9519\u8bef\u63cf\u8ff0\n\n### 0.2.0.post1\n- \u4fee\u6539\u4e86\u5168\u90e8\u7684\u8fd0\u52bf\u63cf\u8ff0\u8bed\u53e5\uff0c\u52a0\u5165\u4e86\u5927\u91cf\u5bf9\u56fd\u5185\u5916\u7535\u5f71\uff0c\u8bd7\u6b4c\uff0c\u5c0f\u8bf4\u4e2d\u7684\u5f15\u7528\uff0c\u6765\u8ba9\u63cf\u8ff0\u53d8\u5f97\u66f4\u4f18\u7f8e\n- \u7ed3\u5408\u73b0\u5b9e\u751f\u6d3b\u4e2d\u7684\u5854\u7f57\u724c\u5360\u535c\uff0c\u589e\u52a0\u4e86\u516d\u4e2a\u65b0\u7684\u5360\u535c\u724c\u9635\n  \n### 0.2.0\n- \u4fee\u590d\u5854\u7f57\u724c\u56fe\u7247\u5728pc\u7aef\u8001\u7248\u672cqq\u4e0a\u65e0\u6cd5\u663e\u793a\u7684\u95ee\u9898\n- \u4f7f\u7528\u5854\u7f57\u724c\u539f\u56fe\uff0c\u63d0\u9ad8\u4e86\u56fe\u50cf\u7684\u6e05\u6670\u5ea6\n\n### 0.1.0 - 0.1.0.post4\n\n- \u4fee\u590d\u5404\u79cdbug\n- \u91cd\u6784\u4ee3\u7801\uff0c\u5bf9\u539f\u6709\u4ee3\u7801\u8fdb\u884c\u6a21\u5757\u5316\u62c6\u5206\u4fbf\u4e8e\u7ef4\u62a4\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A nonebot2 plugin for Blue Archive Tarot.",
    "version": "0.2.0.post3",
    "project_urls": {
        "Homepage": "https://github.com/Perseus037/nonebot_plugin_batarot/"
    },
    "split_keywords": [
        "blue",
        "archive",
        "tarot",
        "nonebot",
        "nonebot2",
        "bot",
        "qq"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f5a33119d4eaa84415ffe3453915019ef4ad4001a63f4ef5e3979ff5cbac99e7",
                "md5": "58d42a7aab1c0f6b93d5497a031821b9",
                "sha256": "c39c060dbbae9fa7547e83aeef73eb51cbe20c704600e181583550325ff7c656"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_batarot-0.2.0.post3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "58d42a7aab1c0f6b93d5497a031821b9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 30703,
            "upload_time": "2023-12-12T02:25:57",
            "upload_time_iso_8601": "2023-12-12T02:25:57.347084Z",
            "url": "https://files.pythonhosted.org/packages/f5/a3/3119d4eaa84415ffe3453915019ef4ad4001a63f4ef5e3979ff5cbac99e7/nonebot_plugin_batarot-0.2.0.post3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fc5eef1839842c20a4f940ead307ee42ee1dc59989d8ca18c16d58cf41ff9461",
                "md5": "0baa938116ae62daf06dd46ff3c11924",
                "sha256": "98d95a16bf2c8160552f3a985e6390efe69a087b98da4d3d864caa8294c73282"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_batarot-0.2.0.post3.tar.gz",
            "has_sig": false,
            "md5_digest": "0baa938116ae62daf06dd46ff3c11924",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.8",
            "size": 31793,
            "upload_time": "2023-12-12T02:25:58",
            "upload_time_iso_8601": "2023-12-12T02:25:58.967112Z",
            "url": "https://files.pythonhosted.org/packages/fc/5e/ef1839842c20a4f940ead307ee42ee1dc59989d8ca18c16d58cf41ff9461/nonebot_plugin_batarot-0.2.0.post3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-12 02:25:58",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Perseus037",
    "github_project": "nonebot_plugin_batarot",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "nonebot-plugin-batarot"
}
        
Elapsed time: 0.15385s