Skip to main content

Fortune divination!

Reason this release was yanked:

同v0.3.2的bug

Project description

Fortune

🙏 今日运势 🙏

版本

v0.2.2

⚠ 适配nonebot2-2.0.0beta.1;适配alpha.16版本参见alpha.16分支

安装

  1. 通过pipnb安装,版本请指定^0.2.2

  2. 抽签签底img、字体font、文案fortune等资源位于./resource下,可在env下设置FORTUNE_PATH更改;

FORTUNE_PATH="your_path_to_resource"   # 默认位于os.path.join(os.path.dirname(__file__), "resource"),具体查看data_source.py
  1. 占卜一下你的今日运势!🎉

功能

  1. 随机抽取今日运势,配置四种抽签主题:原神、PCR、Vtuber、东方;

  2. 可设置随机抽签主题或指定主题,也可指定角色签底(例如可莉、魔理沙、凯露、阿夸🥰);

  3. 每群每人一天限抽签1次,0点刷新(贪心的人是不会有好运的🤗);

  4. 抽签的信息会保存在./resource/fortune_data.json内;群抽签设置保存在./resource/fortune_setting.json内;抽签生成的图片当天会保存在./resource/out下;

命令

  1. 一般抽签:今日运势、抽签、运势;

  2. 指定签底并抽签:指定[xxx]签,具体配置位于utils.pySpecificTypeList

  3. [群管或群主或超管] 配置抽签主题:

    • 设置[原神/pcr/东方/vtb]签:设置群抽签主题;

    • 重置抽签:设置群抽签主题为随机;

  4. 抽签设置:查看当前群抽签主题的配置;

效果

测试效果出自群聊。

display

本插件改自

  1. opqqq-plugin,除功能函数外,由于要适配nonebot2,底层已大改;

  2. 感谢江樂丝提供东方签底实际上可能是东方老哥提供的

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_fortune-0.2.2.tar.gz (29.0 MB view details)

Uploaded Source

Built Distribution

nonebot_plugin_fortune-0.2.2-py3-none-any.whl (29.1 MB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_fortune-0.2.2.tar.gz.

File metadata

  • Download URL: nonebot_plugin_fortune-0.2.2.tar.gz
  • Upload date:
  • Size: 29.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0a2 CPython/3.8.10 Linux/5.4.0-96-generic

File hashes

Hashes for nonebot_plugin_fortune-0.2.2.tar.gz
Algorithm Hash digest
SHA256 bc63325b542f11936ea04e960b00d1fc34cede7cf2f838fd0248661acd67517e
MD5 2549e46db5917f4a301e165643c8e85c
BLAKE2b-256 a112ff78b2f2cc681b77a430f7aa5b904ed7ccb18e247ea75a301e18d84917aa

See more details on using hashes here.

Provenance

File details

Details for the file nonebot_plugin_fortune-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_fortune-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6308851c943b48a4835f49f19c327752a3fb6f1662074039956bce3e93ce8cf8
MD5 1f5770af259a1e5a5a1a25f4ac33cba8
BLAKE2b-256 4e0faacf4974d79727fadab707e18af2fd56ef8f443dc1056290f3774f56d5c1

See more details on using hashes here.

Provenance

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